def _get_timestamp_tuple(ts):
if isinstance(ts, datetime.datetime):    <EOL><INDENT>return Timestamp.from_datetime(ts).tuple()<EOL><DEDENT>elif isinstance(ts, Timestamp):    <EOL><INDENT>return ts<EOL><DEDENT>raise TypeError('<STR_LIT>')<EOL>
Internal method to get a timestamp tuple from a value.
Handles input being a datetime or a Timestamp.