def get_any_key(x):
  """ Returns a key from a dictionary.

    # Arguments:

    x: dict. The dictionary to pull a key from.

    # Return value

    If x is empty, returns None; otherwise, this returns a key from the
    dictionary.
  """
  if x:
    for k in x:
      return k
  else:
    return None