code: def shuffle(*arrays, **kwargs):
      random_state = kwargs.get("random_state")
  
      if len(set(len(x) for x in arrays)) != 1:
          raise ValueError(
              "All inputs to shuffle must have " "the same length."
          )
  
      if random_state is None:
          random_state = np.random.RandomState()
  
      shuffle_indices = np.arange(len(arrays[0]))
      random_state.shuffle(shuffle_indices)
  
      if len(arrays) == 1:
          return arrays[0][shuffle_indices]
      else:
          return tuple(x[shuffle_indices] for x in arrays)
  
imports: import numpy
  import torch
label_desc: Use image node_id 4 for calling a global function with example usage: shuffle() and returns: arrays, tuple