code: def __init__(cls, name, base, dct):
      # A DeprecationWarning is raised when the object inherits from the
      # class "object" which leave the option of passing arguments, but
      # raise a warning stating that it will eventually stop permitting
      # this option. Usually this happens when the base class does not
      # override the __init__ method from object.
      dict_inst = {}
      dict_cls = {}
      for obj_name, obj in dct.items():
          if isinstance(obj, type):
              dict_inst[obj_name] = obj
          else:
              dict_cls[obj_name] = obj
  
      def init_type(self, *args, **kargs):
          """Replace the __init__ function of the new type, in order to
          add attributes that were defined with **kargs to the instance.
          """
          for obj_name, obj in dict_inst.items():
              setattr(self, obj_name, obj())
          if base.__init__ is not object.__init__:
              base.__init__(self, *args, **kargs)
  
      cls.__init__ = init_type
      cls.reduce_args = (name, base, dct)
      super(MetaCreator, cls).__init__(name, (base,), dict_cls)
  
file_path: deap/deap/creator.py
imports: import array
  import copy
  import copyreg
  import warnings
label_desc: Use image node_id 2 to create a new MetaCreator object from inherited base classes: type with example: obj = MetaCreator(cls, name, base, dct)