code: def get_geos_config(option):
      """Get configuration option from the `geos-config` development utility
  
      The PATH environment variable should include the path where geos-config is
      located, or the GEOS_CONFIG environment variable should point to the
      executable.
      """
      cmd = os.environ.get("GEOS_CONFIG", "geos-config")
      try:
          stdout, stderr = subprocess.Popen(
              [cmd, option],
              stdout=subprocess.PIPE,
              stderr=subprocess.PIPE,
          ).communicate()
      except OSError:
          return
      if stderr and not stdout:
          log.warning(
              "geos-config %s returned '%s'",
              option,
              stderr.decode().strip(),
          )
          return
      result = stdout.decode().strip()
      log.debug("geos-config %s returned '%s'", option, result)
      return result
  
file_path: shapely/setup.py
imports: import builtins
  import logging
  import os
  import subprocess
  import sys
  from pathlib import Path
  from pkg_resources import parse_version
  from setuptools import Extension, find_packages, setup
  from setuptools.command.build_ext import build_ext
  import versioneer
label_desc: Use image node_id 1 for calling a global function with example usage: get_geos_config(option) and returns: result