code: def get_profile_model():
      
      user_profile_module = getattr(settings, 'USER_PROFILE_MODULE', None)
      if user_profile_module:
          app_label, model_name = user_profile_module.split('.')
          return get_model(app_label, model_name)
      else:
          return None
docs: Returns configured user profile model or None if not found