code: def timestamp_range(
      start: Union[int, float, datetime],
      end: Union[int, float, datetime],
  ):
      """Create a filter passing all values which timestamp is
      from the specified range, exclusive at the start and inclusive at the end.
      Args:
        start: The start of the row range (inclusive). This can be either a python
        datetime or a number (int of float) representing seconds since epoch.
        end: The end of the row range (exclusive). Same as start, this can be a
        datetime or a number of seconds since epoch.
      Returns:
        pbt_C.Filter: Filter passing only values' versions from the specified range.
      """
      if isinstance(start, datetime):
          start_timestamp = int(start.timestamp() * 1e6)
      else:
          start_timestamp = int(start * 1e6)
  
      if isinstance(end, datetime):
          end_timestamp = int(end.timestamp() * 1e6)
      else:
          end_timestamp = int(end * 1e6)
  
      return BigtableFilter(
          core_ops.bigtable_timestamp_range_filter(
              start_timestamp, end_timestamp
          )
      )
  
file_path: io/tensorflow_io/python/ops/bigtable/bigtable_version_filters.py
imports: from typing import Union
  from datetime import datetime
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 2 for calling a global function with example usage: timestamp_range(start, end) and returns: BigtableFilter