def METHOD_NAME(stream_name, record, stream_alias=None, time_extracted=None):
    """Write a single record for the given stream.
    write_record("users", {"id": 2, "email": "mike@stitchdata.com"})
    """
    write_message(RecordMessage(stream=(stream_alias or stream_name),
                                record=record,
                                time_extracted=time_extracted))