code: def get_scu(
      query,
      output_dir,
      query_level="SERIES",
      host="127.0.0.1",
      port="4242",
      aet="MONAILABEL",
  ):
      start = time.time()
      field = (
          "StudyInstanceUID"
          if query_level == "STUDIES"
          else "SeriesInstanceUID"
      )
      run_command(
          "python",
          [
              "-m",
              "pynetdicom",
              "getscu",
              host,
              port,
              "-P",
              "-k",
              f"0008,0052={query_level}",
              "-k",
              f"{field}={query}",
              "-aet",
              aet,
              "-q",
              "-od",
              output_dir,
          ],
      )
      logger.info(f"Time to run GET-SCU: {time.time() - start} (sec)")
  
file_path: MONAILabel/monailabel/datastore/utils/dicom.py
imports: import logging
  import os
  import time
  from concurrent.futures import ThreadPoolExecutor
  from dicomweb_client import DICOMwebClient
  from pydicom.dataset import Dataset
  from pydicom.filereader import dcmread
  from monailabel.utils.others.generic import md5_digest, run_command
label_desc: Use image node_id 2 for calling a global function with example usage: get_scu(query, output_dir, query_level, host, port, aet) without return types