code: def get_random_times(n_times, sort=True):
      if n_times == 1:
          return gs.random.rand(1)[0]
  
      time = gs.random.rand(n_times)
      if sort:
          return gs.sort(time)
  
      return time
  
imports: import geomstats.backend
  from geomstats.geometry.base import ComplexMatrixVectorSpace
  from geomstats.geometry.euclidean import Euclidean
  from geomstats.geometry.general_linear import SquareMatrices
  from geomstats.vectorization import get_n_points
label_desc: Use image node_id 2 for calling a global function with example usage: get_random_times(n_times, sort) and returns: time, gs, gs