code: def model_from_path(model_path, fuzziness=False):
      
      app_name = '.'.join(model_path.split('.')[:-1])
      model_name = model_path.split('.')[-1]
  
      if not app_name:
          return None
  
      module = importlib.import_module(app_name)
      try:
          model = getattr(module, model_name)
      except AttributeError:
          try:
              model = getattr(getattr(module, 'models'), model_name)
          except AttributeError:
              model = get_model(model_name, app_name, fuzziness=fuzziness)
  
      return model
docs: Find the model class for a given model path like 'project.app.model'
  
      Args:
          path (str): dot-delimited model path, like 'project.app.model'
  
      Returns:
          Django Model-based class