code: def setup(self):
      rng = np.random.RandomState(42)
      nb_streamlines = 20000
      min_nb_points = 2
      max_nb_points = 100
  
      def generate_streamlines(
          nb_streamlines, min_nb_points, max_nb_points, rng
      ):
          streamlines = [
              rng.rand(*(rng.randint(min_nb_points, max_nb_points), 3))
              for _ in range(nb_streamlines)
          ]
          return streamlines
  
      self.data = {}
      self.data["rng"] = rng
      self.data["nb_streamlines"] = nb_streamlines
      self.data["streamlines"] = generate_streamlines(
          nb_streamlines, min_nb_points, max_nb_points, rng=rng
      )
      self.data["streamlines_arrseq"] = Streamlines(
          self.data["streamlines"]
      )
  
      fname = get_fnames("fornix")
      fornix = load_tractogram(
          fname, "same", bbox_valid_check=False
      ).streamlines
  
      self.fornix_streamlines = Streamlines(fornix)
  
file_path: dipy/benchmarks/benchmarks/bench_tracking.py
imports: import numpy
  from dipy.data import get_fnames
  from dipy.io.streamline import load_tractogram
  from dipy.tracking.streamline import set_number_of_points, length
  from dipy.tracking.streamlinespeed import compress_streamlines
  from dipy.tracking import Streamlines
label_desc: Use image node_id 1 for calling the BenchStreamlines obj's underlying member method code with example usage: obj.setup() and returns: streamlines