code: def retrieve_series_metadata(data_dir, study_id, series_id):
      meta = []
      with open(
          os.path.join(
              data_dir, "responses", "retrieve_series_meta.json"
          )
      ) as f:
          meta = json.load(f)
      return meta
  
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 3 for calling a global function with example usage: retrieve_series_metadata(data_dir, study_id, series_id) and returns: meta