code: def set_binary_mac():
      gcc_dir = (
          subprocess.check_output("brew --prefix gcc", shell=True)
          .decode()
          .strip()
      )
      gcc_dir = os.path.join(gcc_dir, "bin")
      gpp_binaries = glob.glob(os.path.join(gcc_dir, "g++-[0-9]*"))
      gcc_binaries = glob.glob(os.path.join(gcc_dir, "gcc-[0-9]*"))
      binaries = [gcc_binaries, gpp_binaries]
      targets = ["CC", "CXX"]
      for binary, target in zip(binaries, targets):
          if binary:
              binary = sorted(
                  binary, key=lambda x: int(x.split("-")[1])
              )[-1]
              os.environ[target] = os.path.join(gcc_dir, binary)
          else:
              msg = (
                  "\n  \033[1;31mNo gcc available.\033[37m Install gcc from"
                  " \033[32mHomebrew\033[37m using `\033[32mbrew install gcc\033[37m`.\033[0m\n"
              )
              sys.exit(msg)
  
file_path: n2/setup.py
imports: import io
  import os
  import sys
  import glob
  import platform
  import subprocess
  from setuptools import Extension, setup
label_desc: Use image node_id 2 for calling a global function with example usage: set_binary_mac() without return types