code: def init_check(data):
      for cls in check_classes:
          if cls.type_attr in data:
              return cls(data)
      check_classes_desc = ", ".join(
          [cls.type_attr for cls in check_classes]
      )
      raise ValueError(
          f"invalid check config - expected one of: {check_classes_desc}"
      )
  
imports: import difflib
  import glob
  import logging
  import os
  import re
  from guild import util
label_desc: Use image node_id 6 for calling a global function with example usage: init_check(data) and returns: cls