code: def load_model_to_validate():
      with open(MODELS_CONFIG_FILE_PATH) as f:
          model_list = json.load(f)
          assert isinstance(model_list, list)
  
      print(model_list)
      models_to_validate = {}
      for m in model_list:
          models_to_validate[m["name"]] = m
  
      # models_to_validate = {m["name"]: m for m in model_list}
      assert len(models_to_validate) == len(
          model_list
      ), "Model names are expected to be unique"
      return models_to_validate
  
file_path: serve/ts_scripts/sanity_utils.py
imports: import glob
  import json
  import os
  import subprocess
  import sys
  from pathlib import Path
  import torch
  from ts_scripts import marsgen
  from ts_scripts import tsutils
  from ts_scripts import utils
  from ts_scripts.tsutils import generate_grpc_client_stubs
label_desc: Use image node_id 3 for calling a global function with example usage: load_model_to_validate() and returns: models_to_validate