code: def init_model_evaluator(settings, tabpy_state, python_service):
      """
      This will go through all models that the service currently have and
      initialize them.
      """
      logger.info("Initializing models...")
  
      existing_pos = tabpy_state.get_endpoints()
  
      for object_name, obj_info in existing_pos.items():
          object_version = obj_info["version"]
          object_type = obj_info["type"]
          object_path = get_query_object_path(
              settings[SettingsParameters.StateFilePath],
              object_name,
              object_version,
          )
  
          logger.info(
              f"Load endpoint: {object_name}, "
              f"version: {object_version}, "
              f"type: {object_type}"
          )
          if object_type == "alias":
              msg = LoadObject(
                  object_name,
                  obj_info["target"],
                  object_version,
                  False,
                  "alias",
              )
          else:
              local_path = object_path
              msg = LoadObject(
                  object_name,
                  local_path,
                  object_version,
                  False,
                  object_type,
              )
          python_service.manage_request(msg)
  
file_path: TabPy/tabpy/tabpy_server/psws/callbacks.py
imports: import logging
  from tabpy.tabpy_server.app.app_parameters import SettingsParameters
  from tabpy.tabpy_server.common.messages import LoadObject, DeleteObjects, ListObjects, ObjectList
  from tabpy.tabpy_server.common.endpoint_file_mgr import cleanup_endpoint_files
  from tabpy.tabpy_server.common.util import format_exception
  from tabpy.tabpy_server.management.state import TabPyState, get_query_object_path
  from tabpy.tabpy_server.management import util
  from time import sleep
  from tornado import gen
label_desc: Use image node_id 3 for calling a global function with example usage: init_model_evaluator(settings, tabpy_state, python_service) without return types