code: def available_fcompilers_for_platform(osname=None, platform=None):
      if osname is None:
          osname = os.name
      if platform is None:
          platform = sys.platform
      matching_compiler_types = []
      for pattern, compiler_type in _default_compilers:
          if re.match(pattern, platform) or re.match(pattern, osname):
              for ct in compiler_type:
                  if ct not in matching_compiler_types:
                      matching_compiler_types.append(ct)
      if not matching_compiler_types:
          matching_compiler_types.append("gnu")
      return matching_compiler_types
  
imports: from __future__ import division, absolute_import, print_function
  import os
  import sys
  import re
  import types
  from numpy.compat import open_latin1
  from distutils.sysconfig import get_python_lib
  from distutils.fancy_getopt import FancyGetopt
  from distutils.errors import DistutilsModuleError, DistutilsExecError, CompileError, LinkError, DistutilsPlatformError
  from distutils.util import split_quoted, strtobool
  from numpy.distutils.ccompiler import CCompiler, gen_lib_options
  from numpy.distutils import log
  from numpy.distutils.misc_util import is_string, all_strings, is_sequence, make_temp_file, get_shared_lib_extension
  from numpy.distutils.exec_command import find_executable
  from numpy.distutils.compat import get_exception
  from numpy.distutils import _shell_utils
  from .environment import EnvironmentConfig
label_desc: Use image node_id 6 for calling a global function with example usage: available_fcompilers_for_platform(osname, platform) and returns: matching_compiler_types