code: def enable_final(base=(), meta_base=()):
      """Returns a base class in which ``final`` decorator is made available.
  
      Inheriting from the returned value of this function enables
      :meth:``~chainer.utils.final`` decorator to be applied to the methods of
      the class.
  
      Args:
          base (type or tuple of types): Base classes of the returned class.
          meta_base (type or tuples of type): Base metaclasses. If any descendant
              classes can directly or indirectly have any metaclasses, these
              metaclasses should be specified here to avoid the metaclass
              conflict.
      """
      if not isinstance(base, (list, tuple)):
          base = (base,)
      if not isinstance(meta_base, (list, tuple)):
          meta_base = (meta_base,)
  
      base_metaclass = type(
          "base_metaclass", (_EnableFinal,) + meta_base, {}
      )
      return six.with_metaclass(base_metaclass, *base)
  
imports: import warnings
  import six
label_desc: Use image node_id 2 for calling a global function with example usage: enable_final(base, meta_base) and returns: six