from typing import OrderedDict


def get_any_value(x):
  """ Returns a value of a dict, list, or tuple.

    # Arguments

    x: object. The object to grab a value for.

    # Return value

    If `x` is a dictionary (including an OrderedDict), returns a value from
    it. If `x` is a list or tuple, returns an element from it. Otherwise,
    raises ValueError.
  """
  if isinstance(x, (dict, OrderedDict)):
    for v in x.values():
      return v
  if isinstance(x, (list, tuple)):
    return x[0]
  raise ValueError('Unexpected data type: {}'.format(type(x)))