code: def _mark_class_as(cls, tag, val=True):
      if hasattr(cls, tag):
          raise RuntimeError(f"Not possible to mark {cls} as {tag}.")
      setattr(cls, tag, val)
      return cls
  
imports: import copy
  import paddleseg
  from paddleseg.utils import logger
  import paddlepanseg.transforms
label_desc: Use image node_id 2 for calling a global function with example usage: _mark_class_as(cls, tag, val) and returns: cls