import random


def uniform_sample_function(input_corpus):
    """Samples uniformly from all the elements in the input corpus.

  Args:
    input_corpus: an InputCorpus object.

  Returns:
    A CorpusElement object.
  """
    corpus = input_corpus.corpus
    choice = random.choice(corpus)
    return choice