code: def _get_val(
      input_dict: Mapping,
      key: str = "model",
      default: Any | None = None,
  ) -> Any | None:
      """
      Search for the item with `key` in `config_dict`.
      Returns: the first occurrence of `key` in a breadth first search.
      """
      if key in input_dict:
          return input_dict[key]
      for sub_dict in input_dict:
          val = input_dict[sub_dict]
          if isinstance(val, Mapping):
              found_val = _get_val(val, key=key, default=None)
              if found_val is not None:
                  return found_val
      return default
  
imports: from __future__ import annotations
  import json
  import os
  import warnings
  from collections.abc import Mapping
  from pathlib import Path
  from typing import Any
  import torch
  import monai.networks.nets
  from monai.apps.utils import download_and_extract, logger
  from monai.config.type_definitions import PathLike
  from monai.networks.utils import copy_model_state
  from monai.utils.module import optional_import
  from .model_desc import MODEL_DESC
  from .model_desc import RemoteMMARKeys
label_desc: Use image node_id 7 for calling a global function with example usage: _get_val(input_dict, key, default) and returns: default, input_dict, found_val