code: def test_imported_extraction_case_insensitive():
      metadata_csv = """WellName,Treatment
  b08,DMSO
  C10,BRD041618
  """
      filenum, path = tempfile.mkstemp(suffix=".csv")
      fd = os.fdopen(filenum, "w")
      fd.write(metadata_csv)
      fd.close()
      try:
          module = cellprofiler_core.modules.metadata.Metadata()
          module.wants_metadata.value = True
          module.add_extraction_method()
          em = module.extraction_methods[0]
          em.filter_choice.value = (
              cellprofiler_core.constants.modules.metadata.F_ALL_IMAGES
          )
          em.extraction_method.value = (
              cellprofiler_core.constants.modules.metadata.X_MANUAL_EXTRACTION
          )
          em.source.value = (
              cellprofiler_core.constants.modules.metadata.XM_FILE_NAME
          )
          em.file_regexp.value = "^(?P<Plate>[^_]+)_(?P<Well>[A-Ha-h][0-9]{2})_s(?P<Site>[0-9])_w(?P<Wavelength>[0-9])"
          em.filter_choice.value = (
              cellprofiler_core.constants.modules.metadata.F_ALL_IMAGES
          )
  
          em = module.extraction_methods[1]
          em.filter_choice.value = (
              cellprofiler_core.constants.modules.metadata.F_ALL_IMAGES
          )
          em.extraction_method.value = (
              cellprofiler_core.constants.modules.metadata.X_IMPORTED_EXTRACTION
          )
          directory, filename = os.path.split(path)
          em.csv_location.value = "{}|{}".format(
              cellprofiler_core.preferences.ABSOLUTE_FOLDER_NAME,
              directory,
          )
          em.csv_filename.value = filename
          em.csv_joiner.value = '[{"%s":"WellName","%s":"Well"}]' % (
              module.CSV_JOIN_NAME,
              module.IPD_JOIN_NAME,
          )
          em.wants_case_insensitive.value = True
          url = "file:/imaging/analysis/P-12345_B08_s5_w2.tif"
          check(
              module,
              url,
              [
                  {
                      "Plate": "P-12345",
                      "Well": "B08",
                      "Site": "5",
                      "Wavelength": "2",
                      "Treatment": "DMSO",
                  }
              ],
          )
          url = "file:/imaging/analysis/P-12345_c10_s2_w3.tif"
          check(
              module,
              url,
              [
                  {
                      "Plate": "P-12345",
                      "Well": "c10",
                      "Site": "2",
                      "Wavelength": "3",
                      "Treatment": "BRD041618",
                  }
              ],
          )
          url = "file:/imaging/analysis/P-12345_A01_s2_w3.tif"
          check(
              module,
              url,
              [
                  {
                      "Plate": "P-12345",
                      "Well": "A01",
                      "Site": "2",
                      "Wavelength": "3",
                  }
              ],
          )
      finally:
          try:
              os.unlink(path)
          except:
              pass
  
imports: import io
  import json
  import os
  import tempfile
  import cellprofiler_core.constants.measurement
  import cellprofiler_core.constants.modules.images
  import cellprofiler_core.constants.modules.metadata
  import cellprofiler_core.measurement
  import cellprofiler_core.modules.images
  import cellprofiler_core.modules.metadata
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  import tests.core
label_desc: Use image node_id 13 for calling a global function with example usage: test_imported_extraction_case_insensitive() without return types