code: def test_trial_logs() -> None:
      experiment_id = exp.run_basic_test(
          conf.fixtures_path("no_op/single.yaml"),
          conf.fixtures_path("no_op"),
          1,
      )
      trial_id = exp.experiment_trials(experiment_id)[0].trial.id
      subprocess.check_call(
          [
              "det",
              "-m",
              conf.make_master_url(),
              "trial",
              "logs",
              str(trial_id),
          ]
      )
      subprocess.check_call(
          [
              "det",
              "-m",
              conf.make_master_url(),
              "trial",
              "logs",
              "--head",
              "10",
              str(trial_id),
          ],
      )
      subprocess.check_call(
          [
              "det",
              "-m",
              conf.make_master_url(),
              "trial",
              "logs",
              "--tail",
              "10",
              str(trial_id),
          ],
      )
  
imports: import json
  import subprocess
  import tempfile
  import pytest
  from determined.common import api, util
  from determined.common.api import bindings
  from determined.experimental import Determined
  from tests import api_utils
  from tests import command
  from tests import config
  from tests import experiment
  from tests.api_utils import determined_test_session
  from tests.cluster.test_checkpoints import wait_for_gc_to_finish
label_desc: Use image node_id 5 for calling a global function with example usage: test_trial_logs() without return types