code: def open_capture_files(log_dir):
      filename = "runtime_env_agent"
      return (
          open_log(pathlib.Path(log_dir) / f"{filename}.out"),
          open_log(pathlib.Path(log_dir) / f"{filename}.err"),
      )
  
file_path: ray/python/ray/_private/runtime_env/agent/main.py
imports: import sys
  import os
  import argparse
  import logging
  import pathlib
  import ray._private.ray_constants
  from ray.core.generated import runtime_env_agent_pb2
  from ray._private.utils import open_log
  from ray._private.ray_logging import configure_log_file
  from ray._private.utils import get_or_create_event_loop
  from ray._private.process_watcher import create_check_raylet_task
  import runtime_env_consts
  from runtime_env_agent import RuntimeEnvAgent
  from aiohttp import web
label_desc: Use image node_id 2 for calling a global function with example usage: open_capture_files(log_dir) and returns: open_log,  open_log