code: def test_trial_logs_converts_epoch_time(
      make_trialref: Callable[[int], trial.Trial]
  ) -> None:
      trialref = make_trialref(1)
      trial_logs = api_responses.sample_trial_logs()
      trial_logs_url = f"{_MASTER}/api/v1/trials/{trialref.id}/logs"
  
      before_ts = 1689285229
      after_ts = 1689280229
  
      timestamp_before = (
          datetime.datetime.fromtimestamp(before_ts).isoformat("T")
          + "Z"
      )
      timestamp_after = (
          datetime.datetime.fromtimestamp(after_ts).isoformat("T") + "Z"
      )
  
      responses.get(trial_logs_url, stream=True, body=trial_logs)
  
      list(
          trialref.logs(
              timestamp_before=before_ts, timestamp_after=after_ts
          )
      )
  
      call = responses.calls[0]
      assert isinstance(call, responses.Call)
  
      # Mypy seems to dislike getting .params from call.request under certain versions of responses,
      # but since we don't allow unnecessary type-ignore comments when a working version is present,
      # we disable type checking this way.
      @no_type_check
      def do():
          assert (
              call.request.params["timestampBefore"] == timestamp_before
          )
          assert (
              call.request.params["timestampAfter"] == timestamp_after
          )
  
      do()
  
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 3 for calling a global function with example usage: test_trial_logs_converts_epoch_time(make_trialref) without return types