code: def load_model(
      path: str,
      model_format: Optional[str] = None,
      shape_dict: Optional[Dict[str, List[int]]] = None,
      **kwargs,
  ):
      """Load a model from a supported framework and convert it
      into an equivalent relay representation.
  
      Parameters
      ----------
      path : str
          The path to the model file.
      model_format : str, optional
          The underlying framework used to create the model.
          If not specified, this will be inferred from the file type.
      shape_dict : dict, optional
          Mapping from input names to their shapes.
  
      Returns
      -------
      tvmc_model : TVMCModel
          The produced model package.
  
      """
  
      if model_format is not None:
          frontend = get_frontend_by_name(model_format)
      else:
          frontend = guess_frontend(path)
  
      mod, params = frontend.load(path, shape_dict, **kwargs)
  
      return TVMCModel(mod, params)
  
imports: import logging
  import os
  import sys
  import re
  import importlib
  from abc import ABC
  from abc import abstractmethod
  from typing import Optional, List, Dict
  from pathlib import Path
  import numpy
  from tvm import relay
  from tvm import parser
  from tvm.driver.tvmc import TVMCException, TVMCImportError
  from tvm.driver.tvmc.model import TVMCModel
label_desc: Use image node_id 5 for calling a global function with example usage: load_model(path, model_format, shape_dict) and returns: TVMCModel