code: def _create_study_negative_elapsed_time() -> Study:
      start = datetime.datetime.now()
      complete = start - datetime.timedelta(seconds=1.0)
      study = optuna.create_study()
      study.add_trial(
          optuna.trial.FrozenTrial(
              number=-1,
              trial_id=-1,
              state=TrialState.COMPLETE,
              value=0.0,
              values=None,
              datetime_start=start,
              datetime_complete=complete,
              params={},
              distributions={},
              user_attrs={},
              system_attrs={},
              intermediate_values={},
          )
      )
      return study
  
file_path: optuna/tests/visualization_tests/test_timeline.py
imports: from __future__ import annotations
  import datetime
  from io import BytesIO
  from typing import Any
  import _pytest.capture
  import pytest
  import optuna
  from optuna.samplers._base import _CONSTRAINTS_KEY
  from optuna.study.study import Study
  from optuna.trial import TrialState
  from optuna.visualization._plotly_imports import go
  from optuna.visualization._timeline import _get_timeline_info
  from optuna.visualization._timeline import plot_timeline
label_desc: Use image node_id 2 for calling a global function with example usage: _create_study_negative_elapsed_time() and returns: study