code: def extract_scala_class(class_path):
      exclude_key_words = set(
          [
              "*",
              "abstract",
              "Const",
              "Fill",
              "Shape",
              "SplitAndSelect",
              "StrideSlice",
              "Scheduler",
              "StaticGraph",
              "DynamicGraph",
              "DynamicContainer",
              "SplitHeads",
              "CombineHeads",
              "VectorProduct",
              "MaskHead",
              "MaskPostProcessor",
              "BoxHead",
              "BoxPostProcessor",
              "RegionProposal",
              "ProposalPostProcessor",
          ]
      )  # noqa
      include_key_words = set(
          ["Module", "Criterion", "Container", "Cell", "TensorNumeric"]
      )  # noqa
      content = "\n".join(
          [
              line
              for line in open(class_path).readlines()
              if all([key not in line for key in exclude_key_words])
          ]
      )  # noqa
      match = re.search(r"class ([\w]+)[^{]+", content)
      if match and any(
          [key in match.group() for key in include_key_words]
      ):
          return match.group(1)
      else:
          return None
  
imports: import os
  import re
  from os.path import isfile, join
label_desc: Use image node_id 1 for calling a global function with example usage: extract_scala_class(class_path) and returns: match, None