code: def random_permutation(data):
      """Returns a list containing a random permutation of ``r`` elements out of
      ``data``.
  
      :param data: an iterable containing the elements to permute over
      :returns: returns a list containing permuted entries of ``data``.
  
      """
      d = data[:]
      random.shuffle(d)
      return d
  
imports: import math
  import random
  import itertools
  import functools
  import operator
  import array
  import inspect
label_desc: Use image node_id 2 for calling a global function with example usage: random_permutation(data) and returns: d