code: def start_end_time_options(function: Callable) -> Callable:
      """Options for start_time and end_time."""
      function = click.option(
          "--start-time",
          type=str,
          default=None,
          help="Optional iso8601 timestamp to constraint the start time of the data (inclusive)",
          callback=lambda ctx, param, value: convert_to_datetime(value),
      )(function)
  
      function = click.option(
          "--end-time",
          type=str,
          default=None,
          help="Optional iso8601 timestamp to constraint the end time of the data (inclusive)",
          callback=lambda ctx, param, value: convert_to_datetime(value),
      )(function)
      return function
  
file_path: metricflow/metricflow/cli/utils.py
imports: from __future__ import annotations
  import datetime
  import logging
  import pathlib
  import traceback
  from functools import update_wrapper, wraps
  from typing import Any, Callable, List, Optional
  import click
  from dateutil.parser import parse
  import metricflow.cli.custom_click_types
  from metricflow.cli.cli_context import CLIContext
label_desc: Use image node_id 2 for calling a global function with example usage: start_end_time_options(function) and returns: function