code: def sorted_random_indexes(total, output_num):
      random_indexes = [
          np.random.randint(total) for _ in range(output_num)
      ]
      random_indexes.sort()
      return random_indexes
  
file_path: ray/python/ray/tests/test_stress_failure.py
imports: import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.ray_constants
  from ray._private.test_utils import get_error_message
  from ray.cluster_utils import Cluster, cluster_not_supported
label_desc: Use image node_id 3 for calling a global function with example usage: sorted_random_indexes(total, output_num) and returns: random_indexes