code: def _parse_model(model: str) -> ParsedModel:
      tag = DEFAULT_ZOO_TAG
      model_type, model_name = model.split("/")
      download_name = model_name
      if "." in model_name:
          model_name, tag = model_name.split(".")
      json_folder = os.path.join(configs_root, model_type, model_name)
      json_path = os.path.join(json_folder, f"{tag}.json")
      if not os.path.isfile(json_path):
          json_path = os.path.join(
              json_folder, f"{DEFAULT_ZOO_TAG}.json"
          )
      return ParsedModel(json_path, download_name)
  
imports: import os
  import json
  import torch
  from typing import Any
  from typing import Dict
  from typing import List
  from typing import Type
  from typing import Tuple
  from typing import Union
  from typing import Optional
  from typing import NamedTuple
  from cftool.misc import update_dict
  from cftool.misc import safe_execute
  from cftool.misc import shallow_copy_dict
  from cftool.types import tensor_dict_type
  from .models import dl_zoo_model_loaders
  from ..schema import IData
  from ..schema import DLConfig
  from ..pipeline import Pipeline
  from ..pipeline import PipelineTypes
  from ..pipeline import TrainingPipeline
  from ..pipeline import DLInferencePipeline
  from ..constants import DEFAULT_ZOO_TAG
  from ..parameters import OPT
  from ..misc.toolkit import download_model
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_model(model) and returns: ParsedModel