code: def get_pkg_config(pkg_config_args, *packages):
      
      if not isinstance(pkg_config_args, (tuple, list)):
          pkg_config_args = [pkg_config_args]
      # Maybe we have multiple pkg-config, and maybe some of them finds it.
      for pp in find_exec_in_path("pkg-config"):
          try:
              cmd = [pp] + list(pkg_config_args) + list(packages)
              #print(" ".join(cmd))
              out = check_output(cmd, stderr=open(os.devnull, "wb"))
              return out.strip().decode("utf8").split()
          except CalledProcessError:
              pass
      return None
docs: :param str|list[str] pkg_config_args: e.g. "--cflags"
      :param str packages: e.g. "python3"
      :rtype: list[str]|None