code: def get_modalities(self):
      with open(self.data_json, "rb") as f:
          dataset_json = json.load(f)
      modalities = dataset_json["modality"]
      modalities = {int(k): modalities[k] for k in modalities.keys()}
      return modalities
  
file_path: PaddleSeg/contrib/MedicalSeg/tools/preprocess_utils/dataset_analyzer.py
imports: import json
  import os
  import pickle
  import numpy
  from skimage.morphology import label
  from collections import OrderedDict
  from multiprocessing import Pool
  from .path_utils import join_paths
label_desc: Use image node_id 6 for calling the DatasetAnalyzer obj's underlying member method code with example usage: obj.get_modalities() and returns: modalities