code: def search_for_series(data_dir, **kwargs):
      search_filters = None
      if "search_filters" in kwargs:
          search_filters = kwargs["search_filters"]
  
      modality = "CT"
      if search_filters and "Modality" in search_filters:
          modality = search_filters["Modality"]
  
      response_dir = os.path.join(data_dir, "responses")
      if modality == "CT":
          with open(
              os.path.join(response_dir, "search_for_series_ct.json")
          ) as f:
              resp = json.load(f)
      elif modality == "SEG":
          with open(
              os.path.join(response_dir, "search_for_series_seg.json")
          ) as f:
              resp = json.load(f)
  
      return resp
  
file_path: MONAILabel/tests/unit/endpoints/test_dicomwebcache.py
imports: import json
  import os
  import unittest
  from typing import Dict
  from unittest.mock import patch
  import pydicom
  from monailabel.datastore.dicom import DICOMWebDatastore
  from monailabel.utils.others.generic import md5_digest
  from .context import DICOMWebEndpointTestSuite
label_desc: Use image node_id 1 for calling a global function with example usage: search_for_series(data_dir) and returns: resp