code: def import_model(cls, ins_name):
          
          try:
              package_space = getattr(cls, 'package_space')
          except AttributeError:
              raise ValueError('package_space not exist')
          else:
              return import_object(ins_name, package_space)
docs: Import model class in models package