code: def __init__(
      self,
      folder_with_cropped_data,
      overwrite=True,
      dataset_property_pkl="dataset_properties.pkl",
      data_json="dataset.json",
      intensityproperties_file="intensityproperties.pkl",
      num_processes=8,
  ):
      self.overwrite = overwrite
      self.num_processes = num_processes
      self.folder_with_cropped_data = folder_with_cropped_data
      self.dataset_property_pkl = join_paths(
          folder_with_cropped_data, dataset_property_pkl
      )
      self.data_json = join_paths(
          self.folder_with_cropped_data, data_json
      )
      assert os.path.isfile(
          self.data_json
      ), "{} needs to be in {} but not found. Please ensure your folder including cropped data.".format(
          data_json, folder_with_cropped_data
      )
      self.intensityproperties_file = join_paths(
          self.folder_with_cropped_data, intensityproperties_file
      )
  
      self.sizes = self.spacings = None
      self.patient_identifiers = (
          self.get_patient_identifiers_from_cropped_files(
              self.folder_with_cropped_data
          )
      )
  
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 1 to create a new DatasetAnalyzer object  with example: obj = DatasetAnalyzer(folder_with_cropped_data, overwrite, dataset_property_pkl, data_json, intensityproperties_file, num_processes)