code: def test_task_logs_info_disabled(shutdown_only, monkeypatch):
      """Test when redirect disabled, no task log info is available
      due to missing log file
      """
      with monkeypatch.context() as m:
          m.setenv(
              ray_constants.LOGGING_REDIRECT_STDERR_ENVIRONMENT_VARIABLE,
              "1",
          )
  
          ray.init(num_cpus=1)
  
          @ray.remote
          def f():
              print("hi")
  
          ray.get(f.remote())
  
          def verify():
              tasks = list_tasks()
  
              assert len(tasks) == 1
              assert tasks[0].get("task_log_info") is None
              return True
  
          wait_for_condition(verify)
  
imports: import asyncio
  from collections import defaultdict
  import os
  from typing import Dict
  import pytest
  import sys
  import time
  from ray._private import ray_constants
  from functools import reduce
  import ray
  from ray._private.state_api_test_utils import PidActor, get_state_api_manager, verify_tasks_running_or_terminated, verify_failed_task
  from ray.util.state.common import ListApiOptions, StateResource
  from ray._private.test_utils import async_wait_for_condition_async_predicate, run_string_as_driver, run_string_as_driver_nonblocking, wait_for_condition
  from ray.util.state import StateApiClient, list_actors, list_jobs, list_tasks
label_desc: Use image node_id 17 for calling a global function with example usage: test_task_logs_info_disabled(shutdown_only, monkeypatch) and returns: True