code: def get_model_by_name(name: str) -> ObjectronModel:
      if name not in _MODEL_DICT:
          raise ValueError(
              f"{name} is not a valid model name for Objectron."
          )
      _download_oss_objectron_models(_MODEL_DICT[name].model_path)
      return _MODEL_DICT[name]
  
imports: import enum
  from typing import List, Tuple, NamedTuple, Optional
  import attr
  import numpy
  from mediapipe.calculators.core import constant_side_packet_calculator_pb2
  from mediapipe.calculators.core import gate_calculator_pb2
  from mediapipe.calculators.core import split_vector_calculator_pb2
  from mediapipe.calculators.tensor import image_to_tensor_calculator_pb2
  from mediapipe.calculators.tensor import inference_calculator_pb2
  from mediapipe.calculators.tensor import tensors_to_detections_calculator_pb2
  from mediapipe.calculators.tensor import tensors_to_floats_calculator_pb2
  from mediapipe.calculators.tensor import tensors_to_landmarks_calculator_pb2
  from mediapipe.calculators.tflite import ssd_anchors_calculator_pb2
  from mediapipe.calculators.util import association_calculator_pb2
  from mediapipe.calculators.util import collection_has_min_size_calculator_pb2
  from mediapipe.calculators.util import detection_label_id_to_text_calculator_pb2
  from mediapipe.calculators.util import detections_to_rects_calculator_pb2
  from mediapipe.calculators.util import landmark_projection_calculator_pb2
  from mediapipe.calculators.util import local_file_contents_calculator_pb2
  from mediapipe.calculators.util import non_max_suppression_calculator_pb2
  from mediapipe.calculators.util import rect_transformation_calculator_pb2
  from mediapipe.calculators.util import thresholding_calculator_pb2
  from mediapipe.framework.formats import landmark_pb2
  from mediapipe.modules.objectron.calculators import annotation_data_pb2
  from mediapipe.modules.objectron.calculators import frame_annotation_to_rect_calculator_pb2
  from mediapipe.modules.objectron.calculators import lift_2d_frame_annotation_to_3d_calculator_pb2
  from mediapipe.python.solution_base import SolutionBase
  from mediapipe.python.solutions import download_utils
label_desc: Use image node_id 2 for calling a global function with example usage: get_model_by_name(name) and returns: _MODEL_DICT