code: def add_logger():
      ray_logger = logging.getLogger("ray.serve")
      handler = logging.StreamHandler()
      handler.setFormatter(MyServeFormatter())
      ray_logger.addHandler(handler)
  
imports: import importlib
  import logging
  import os
  import sys
  import pytest
  import requests
  import starlette
  from starlette.middleware import Middleware
  import ray
  from ray import serve
  from ray._private.test_utils import wait_for_condition
  from ray.exceptions import RayActorError
  from ray.serve._private.common import ProxyStatus
  from ray.serve._private.utils import call_function_from_import_path
  from ray.serve.context import _get_global_client
  from ray.serve.schema import LoggingConfig, ServeInstanceDetails
label_desc: Use image node_id 2 for calling a global function with example usage: add_logger() without return types