code: def _core_run(
      self,
      stopping_path,
      use_binary_mask,
      stopping_thr,
      seeding_path,
      seed_density,
      step_size,
      direction_getter,
      out_tract,
      save_seeds,
  ):
      stop, affine = load_nifti(stopping_path)
      if use_binary_mask:
          stopping_criterion = BinaryStoppingCriterion(
              stop > stopping_thr
          )
      else:
          stopping_criterion = ThresholdStoppingCriterion(
              stop, stopping_thr
          )
      logging.info("stopping criterion done")
      seed_mask, _ = load_nifti(seeding_path)
      seeds = utils.seeds_from_mask(
          seed_mask,
          affine,
          density=[seed_density, seed_density, seed_density],
      )
      logging.info("seeds done")
  
      tracking_result = LocalTracking(
          direction_getter,
          stopping_criterion,
          seeds,
          affine,
          step_size=step_size,
          save_seeds=save_seeds,
      )
  
      logging.info("LocalTracking initiated")
  
      if save_seeds:
          streamlines, seeds = zip(*tracking_result)
          seeds = {"seeds": seeds}
      else:
          streamlines = list(tracking_result)
          seeds = {}
  
      sft = StatefulTractogram(
          streamlines,
          seeding_path,
          Space.RASMM,
          data_per_streamline=seeds,
      )
      save_tractogram(sft, out_tract, bbox_valid_check=False)
      logging.info("Saved {0}".format(out_tract))
  
file_path: dipy/dipy/workflows/tracking.py
imports: import logging
  from dipy.direction import DeterministicMaximumDirectionGetter, ProbabilisticDirectionGetter, ClosestPeakDirectionGetter
  from dipy.io.image import load_nifti
  from dipy.io.peaks import load_peaks
  from dipy.io.stateful_tractogram import Space, StatefulTractogram
  from dipy.io.streamline import save_tractogram
  from dipy.tracking import utils
  from dipy.tracking.local_tracking import LocalTracking, ParticleFilteringTracking
  from dipy.tracking.stopping_criterion import BinaryStoppingCriterion, CmcStoppingCriterion, ThresholdStoppingCriterion
  from dipy.workflows.workflow import Workflow
label_desc: Use image node_id 3 for calling the LocalFiberTrackingPAMFlow obj's underlying member method code with example usage: obj._core_run(stopping_path, use_binary_mask, stopping_thr, seeding_path, seed_density, step_size, direction_getter, out_tract, save_seeds) without return types