class_docstr: Factory to create instances of classes inheriting a given ``base`` class.
  
  The factory can instantiate children of the base class at any level of inheritance.
  The children class must have different names (capitalization insensitive). To instantiate
  objects with the factory, use ``factory.create('name_of_the_children_class')`` passing the name
  of the children class to instantiate.
  
  To support classes even when they are not imported, register them in the ``entry_points``
  of the package's ``setup.py``. The factory will import all registered classes in the
  entry_points before looking for available children to create new objects.
  
  Parameters
  ----------
  base: class
     Base class of all children that the factory can instantiate.
class_docstr_tok: ["Factory","to","create","instances","of","classes","inheriting","a","given","``","base","``","class",".","The","factory","can","instantiate","children","of","the","base","class","at","any","level","of","inheritance",".","The","children","class","must","have","different","names","(","capitalization","insensitive",")",".","To","instantiate","objects","with","the","factory",",","use","``","factory.create","(","'name_of_the_children_class","'",")","``","passing","the","name","of","the","children","class","to","instantiate",".","To","support","classes","even","when","they","are","not","imported",",","register","them","in","the","``","entry_points","``","of","the","package","'s","``","setup.py","``",".","The","factory","will","import","all","registered","classes","in","the","entry_points","before","looking","for","available","children","to","create","new","objects",".","Parameters","--","--","--","--","--","base",":","class","Base","class","of","all","children","that","the","factory","can","instantiate","."]
code: def __init__(self, base: type[T]):
      self.base = base
  
imports: from __future__ import annotations
  import hashlib
  import logging
  import os
  import signal
  import sys
  from abc import ABCMeta
  from collections import defaultdict
  from contextlib import contextmanager
  from glob import glob
  from importlib import import_module
  from tempfile import NamedTemporaryFile
  from typing import Generic, TypeVar
label_desc: Use image node_id 1 to create a new GenericFactory object from inherited base classes: Generic with example: obj = GenericFactory(base)