fn to_dictionary_field(field: &Field) -> Field
Helper function to create a dictionary field from a field.