code: def seeds_are_same_space_as_streamlines(tractogram_path):
      sft = load_tractogram(
          tractogram_path, "same", bbox_valid_check=False
      )
      seeds = sft.data_per_streamline["seeds"]
      streamlines = sft.streamlines
  
      for seed, streamline in zip(seeds, streamlines):
          map_res = list(
              map(
                  lambda x: np.allclose(seed, x, atol=1e-2, rtol=1e-4),
                  streamline,
              )
          )
          # If no point is close to the seed, it likely means that the seed is
          # not in the same space as the streamline
          if not np.any(map_res):
              return False
  
      return True
  
file_path: dipy/dipy/workflows/tests/test_tracking.py
imports: from os.path import join
  from tempfile import TemporaryDirectory
  import warnings
  import nibabel
  import numpy
  from numpy.testing import assert_equal
  from dipy.testing import assert_false, assert_true
  from dipy.data import get_fnames
  from dipy.io.image import save_nifti, load_nifti
  from dipy.io.streamline import load_tractogram
  from dipy.reconst.shm import descoteaux07_legacy_msg
  from dipy.workflows.mask import MaskFlow
  from dipy.workflows.reconst import ReconstCSDFlow
  from dipy.workflows.tracking import LocalFiberTrackingPAMFlow, PFTrackingPAMFlow
label_desc: Use image node_id 5 for calling a global function with example usage: seeds_are_same_space_as_streamlines(tractogram_path) and returns: True, False