def schema_from_record(record, timestamp_parser=default_timestamp_parser):
    """Generate a BigQuery schema given an example of a record that is to be
    inserted into BigQuery.

    Parameters
    ----------
    record : dict
        Example of a record that is to be inserted into BigQuery
    timestamp_parser : function, optional
        Unary function taking a ``str`` and returning and ``bool`` that is
        True if the string represents a date

    Returns
    -------
    Schema: list
    """
    return [describe_field(k, v, timestamp_parser=timestamp_parser)
            for k, v in list(record.items())]
Generate a BigQuery schema given an example of a record that is to be
    inserted into BigQuery.

    Parameters
    ----------
    record : dict
        Example of a record that is to be inserted into BigQuery
    timestamp_parser : function, optional
        Unary function taking a ``str`` and returning and ``bool`` that is
        True if the string represents a date

    Returns
    -------
    Schema: list