code: def with_metaclass(meta, *bases):
      """Create a base class with a metaclass."""
  
      # This requires a bit of explanation: the basic idea is to make a dummy
      # metaclass for one level of class instantiation that replaces itself with
      # the actual metaclass.
      class metaclass(meta):
          def __new__(cls, name, this_bases, d):
              return meta(name, bases, d)
  
      return type.__new__(metaclass, str("temporary_class"), (), {})
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import itertools
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: with_metaclass(meta) and returns: type, meta