code: def test_trial_logs_accepts_valid_timestamps(
      make_trialref: Callable[[int], trial.Trial],
      name: str,
      valid_timestamp: str,
  ) -> None:
      trialref = make_trialref(1)
      trial_logs = api_responses.sample_trial_logs()
      trial_logs_url = f"{_MASTER}/api/v1/trials/{trialref.id}/logs"
  
      responses.get(
          trial_logs_url,
          stream=True,
          body=trial_logs,
      )
      list(
          trialref.logs(
              timestamp_before=valid_timestamp, timestamp_after=None
          )
      )
  
      responses.get(
          trial_logs_url,
          stream=True,
          body=trial_logs,
      )
  
      list(
          trialref.logs(
              timestamp_before=None, timestamp_after=valid_timestamp
          )
      )
  
file_path: determined/harness/tests/determined/common/experimental/test_trial.py
imports: import datetime
  from typing import Callable, no_type_check
  from unittest import mock
  import pytest
  import responses
  from determined.common import api
  from determined.common.experimental import checkpoint, determined, trial
  from tests.fixtures import api_responses
label_desc: Use image node_id 5 for calling a global function with example usage: test_trial_logs_accepts_valid_timestamps(make_trialref, name, valid_timestamp) without return types