code: def _pkg_config(name):
      try:
          command = os.environ.get("PKG_CONFIG", "pkg-config")
          command_libs = [command, "--libs-only-L", name]
          command_cflags = [command, "--cflags-only-I", name]
          if not DEBUG:
              command_libs.append("--silence-errors")
              command_cflags.append("--silence-errors")
          libs = (
              subprocess.check_output(command_libs)
              .decode("utf8")
              .strip()
              .replace("-L", "")
          )
          cflags = (
              subprocess.check_output(command_cflags)
              .decode("utf8")
              .strip()
              .replace("-I", "")
          )
          return (libs, cflags)
      except Exception:
          pass
  
imports: import os
  import re
  import struct
  import subprocess
  import sys
  import warnings
  from setuptools import Extension, setup
  from setuptools.command.build_ext import build_ext
label_desc: Use image node_id 9 for calling a global function with example usage: _pkg_config(name) and returns: libs,  cflags