code: def test_forbidden_with_long_past_skew(
      self, client: FlaskClient, signer
  ):
      with time_machine.travel(
          datetime.datetime.utcnow() - datetime.timedelta(seconds=40)
      ):
          token = signer.generate_signed_token(
              {"filename": "sample.log"}
          )
      assert (
          client.get(
              "/log/sample.log",
              headers={
                  "Authorization": token,
              },
          ).status_code
          == 403
      )
  
imports: from __future__ import annotations
  import datetime
  from pathlib import Path
  from typing import TYPE_CHECKING
  import jwt
  import pytest
  import time_machine
  from airflow.config_templates.airflow_local_settings import DEFAULT_LOGGING_CONFIG
  from airflow.utils.jwt_signer import JWTSigner
  from airflow.utils.serve_logs import create_app
  from tests.test_utils.config import conf_vars
label_desc: Use image node_id 9 for calling the TestServeLogs obj's underlying member method code with example usage: obj.test_forbidden_with_long_past_skew(client, signer) without return types