code: def with_metaclass(mcls):
      def decorator(cls):
          body = vars(cls).copy()
          # clean out class body
          body.pop("__dict__", None)
          body.pop("__weakref__", None)
          return mcls(cls.__name__, cls.__bases__, body)
  
      return decorator
  
imports: import json
  import os
  import re
  import time
  from collections import namedtuple
  from itertools import chain
  from metaflow.exception import MetaflowInternalError, MetaflowTaggingError
  from metaflow.tagging_util import validate_tag
  from metaflow.util import get_username, resolve_identity_as_tuple, is_stringish
label_desc: Use image node_id 1 for calling a global function with example usage: with_metaclass(mcls) and returns: decorator, mcls