def get_filtered_key(input_key, indices):
  """Filter input keys to indices.

  Args:
    input_key (tuple): Contains input key information.
    indices: Which indices to select from the input key.

  Returns:
    filtered_key (tuple): The components of the input key designated by indices.
  """
  return tuple([input_key[i] for i in indices])