code: def random_combination(iterable, r):
      """Return a random *r* length subsequence of the elements in *iterable*.
  
          >>> random_combination(range(5), 3)  # doctest:+SKIP
          (2, 3, 4)
  
      This equivalent to taking a random selection from
      ``itertools.combinations(iterable, r)``.
  
      """
      pool = tuple(iterable)
      n = len(pool)
      indices = sorted(sample(range(n), r))
      return tuple(pool[i] for i in indices)
  
imports: import warnings
  from collections import deque
  from itertools import chain, combinations, count, cycle, groupby, islice, repeat, starmap, tee, zip_longest
  import operator
  from random import randrange, sample, choice
label_desc: Use image node_id 24 for calling a global function with example usage: random_combination(iterable, r) and returns: tuple