code: def _get_extras(path_dir: str = _PATH_REQUIRE) -> dict:
      _load_req = partial(_load_requirements, path_dir=path_dir)
      found_req_files = sorted(
          os.path.basename(p)
          for p in glob.glob(os.path.join(path_dir, "*.txt"))
      )
      found_req_files = [
          p for p in found_req_files if not p.startswith("testing_")
      ]
      # remove datatype prefix
      found_req_names = [
          os.path.splitext(req)[0].replace("datatype_", "")
          for req in found_req_files
      ]
      # define basic and extra extras
      extras_req = {
          name: _load_req(file_name=fname)
          for name, fname in zip(found_req_names, found_req_files)
      }
      # extras_req.update({
      #     name: extras_req[name.split("_")[0]] + _load_req(file_name=fname)
      #     for name, fname in zip(found_req_names, found_req_files)
      #     if "_" in name
      # })
      # some extra combinations
      extras_req["vision"] = _expand_reqs(
          extras_req, ["image", "video"]
      )
      extras_req["core"] = _expand_reqs(
          extras_req, ["image", "tabular", "text"]
      )
      extras_req["all"] = _expand_reqs(
          extras_req, ["vision", "tabular", "text", "audio"]
      )
      extras_req["dev"] = _expand_reqs(
          extras_req, ["all", "test", "docs"]
      )
      # filter the uniques
      return {n: list(set(req)) for n, req in extras_req.items()}
  
file_path: lightning-flash/setup.py
imports: import glob
  import os
  import re
  from functools import partial
  from importlib.util import module_from_spec, spec_from_file_location
  from itertools import chain
  from setuptools import find_packages, setup
label_desc: Use image node_id 6 for calling a global function with example usage: _get_extras(path_dir) and returns: unknown