code: def select_random_set_of_streamlines(streamlines, select, rng=None):
      """Select a random set of streamlines
  
      Parameters
      ----------
      streamlines : Streamlines
          Object of 2D ndarrays of shape[-1]==3
  
      select : int
          Number of streamlines to select. If there are less streamlines
          than ``select`` then ``select=len(streamlines)``.
  
      rng : RandomState
          Default None.
  
      Returns
      -------
      selected_streamlines : list
  
      Notes
      -----
      The same streamline will not be selected twice.
      """
      len_s = len(streamlines)
      if rng is None:
          rng = np.random.RandomState()
      index = rng.choice(len_s, min(select, len_s), replace=False)
      if isinstance(streamlines, Streamlines):
          return streamlines[index]
      return [streamlines[i] for i in index]
  
imports: from copy import deepcopy
  from warnings import warn
  import types
  from scipy.spatial.distance import cdist
  import numpy
  from nibabel.affines import apply_affine
  from nibabel.streamlines import ArraySequence
  from dipy.tracking.streamlinespeed import length, set_number_of_points
  from dipy.tracking.distances import bundles_distances_mdf
  import dipy.tracking.utils
  from dipy.core.geometry import dist_to_corner
  from dipy.core.interpolation import interpolate_vector_3d, interpolate_scalar_3d
label_desc: Use image node_id 6 for calling a global function with example usage: select_random_set_of_streamlines(streamlines, select, rng) and returns: unknown, streamlines