def list_from_multiproperty(*external_names):
  """Creates a list from multiple properties.

  Args:
    *external_names: A list of properties to use.

  Returns:
    A function that returns a list of the properties in external_names.
  """

  def list_from_multiproperty_lambda(unused_value, bulkload_state):
    result = []
    for external_name in external_names:
      value = bulkload_state.current_dictionary.get(external_name)
      if value:
        result.append(value)
    return result

  return list_from_multiproperty_lambda