code: def with_metaclass(meta, *bases):
      """Create a base class with a metaclass."""
  
      # Compatibility 2/3. Remove when only 3 support
      class metaclass(type):
          def __new__(cls, name, this_bases, d):
              return meta(name, bases, d)
  
      return type.__new__(metaclass, "temporary_class", (), {})
  
imports: import functools
  import pickle
  from .consts import OP_GETATTR, OP_SETATTR, OP_DELATTR, OP_CALL, OP_CALLATTR, OP_CALLONCLASS, OP_DEL, OP_REPR, OP_STR, OP_HASH, OP_PICKLE, OP_DIR, OP_INIT
label_desc: Use image node_id 2 for calling a global function with example usage: with_metaclass(meta) and returns: type, meta