code: def sample_log(request, tmp_path):
      client = request.getfixturevalue("client")
  
      if client == request.getfixturevalue("client_without_config"):
          base_log_dir = tmp_path
      elif client == request.getfixturevalue("client_with_config"):
          base_log_dir = Path(
              DEFAULT_LOGGING_CONFIG["handlers"]["task"][
                  "base_log_folder"
              ]
          )
      else:
          raise ValueError(f"Unknown client fixture: {client}")
  
      f = base_log_dir.joinpath("sample.log")
      f.write_text(LOG_DATA)
      return f
  
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 4 for calling a global function with example usage: sample_log(request, tmp_path) and returns: f