code: def test_search(self):
      self.assertEqual(_get_val({"a": 1, "b": 2}, key="b"), 2)
      self.assertEqual(
          _get_val({"a": {"c": {"c": 4}}, "b": {"c": 2}}, key="b"),
          {"c": 2},
      )
      self.assertEqual(
          _get_val({"a": {"c": 4}, "b": {"c": 2}}, key="c"), 4
      )
      self.assertEqual(
          _get_val({"a": {"c": None}, "b": {"c": 2}}, key="c"), 2
      )
  
file_path: MONAI/tests/test_mmar_download.py
imports: from __future__ import annotations
  import os
  import tempfile
  import unittest
  from pathlib import Path
  import numpy
  import torch
  from parameterized import parameterized
  from monai import __version__
  from monai.apps import download_mmar, load_from_mmar
  from monai.apps.mmars import MODEL_DESC
  from monai.apps.mmars.mmars import _get_val
  from monai.utils import version_leq
  from tests.utils import skip_if_downloading_fails, skip_if_quick
label_desc: Use image node_id 4 for calling the TestMMMARDownload obj's underlying member method code with example usage: obj.test_search() without return types