code: def meta(*bases, **kwargs):
    
    metaclass = kwargs.get("metaclass", type)
    if not bases:
      bases = (object,)
    class NewMeta(type):
      def __new__(mcls, name, mbases, namespace):
        if name:
          return metaclass.__new__(metaclass, name, bases, namespace)
        return super(NewMeta, mcls).__new__(mcls, "", mbases, {})
    return NewMeta("", tuple(), {})
docs: Allows unique syntax similar to Python 3 for working with metaclasses in
    both Python 2 and Python 3.
  
    Examples
    --------
    >>> class BadMeta(type): # An usual metaclass definition
    ...   def __new__(mcls, name, bases, namespace):
    ...     if "bad" not in namespace: # A bad constraint
    ...       raise Exception("Oops, not bad enough")
    ...     value = len(name) # To ensure this metaclass is called again
    ...     def really_bad(self):
    ...       return self.bad() * value
    ...     namespace["really_bad"] = really_bad
    ...     return super(BadMeta, mcls).__new__(mcls, name, bases, namespace)
    ...
    >>> class Bady(meta(object, metaclass=BadMeta)):
    ...   def bad(self):
    ...     return "HUA "
    ...
    >>> class BadGuy(Bady):
    ...   def bad(self):
    ...     return "R"
    ...
    >>> issubclass(BadGuy, Bady)
    True
    >>> Bady().really_bad() # Here value = 4
    'HUA HUA HUA HUA '
    >>> BadGuy().really_bad() # Called metaclass ``__new__`` again, so value = 6
    'RRRRRR'