code: def import_cls(cls_name):
      
      path_components = cls_name.split('.')
      module = __import__('.'.join(path_components[:-1]),
                          locals(),
                          globals(),
                          fromlist=path_components[-1:])
      return getattr(module, path_components[-1])
docs: Import class by its fully qualified name.
  
      In terms of current example it is just a small helper function. Please,
      don't use it in production approaches.