code: def test_put_with_logging_config(ray_start_stop):
      """Test serve component logging config can be updated via REST API."""
  
      url = "http://localhost:8265/api/serve/applications/"
      import_path = (
          "ray.serve.tests.test_config_files.logging_config_test.model"
      )
      config1 = {
          "http_options": {
              "host": "127.0.0.1",
              "port": 8000,
          },
          "logging_config": {
              "encoding": "JSON",
          },
          "applications": [
              {
                  "name": "app",
                  "route_prefix": "/app",
                  "import_path": import_path,
              },
          ],
      }
  
      deploy_config_multi_app(config1, url)
      wait_for_condition(
          lambda: requests.get("http://localhost:8000/app").status_code
          == 200,
          timeout=15,
      )
      print("Deployments are live and reachable over HTTP.\n")
  
      # Make sure deployment & controller both log in json format.
      resp = requests.post("http://localhost:8000/app").json()
      replica_id = resp["replica"].split("#")[-1]
      expected_log_regex = [f'"replica": "{replica_id}", ']
      check_log_file(resp["log_file"], expected_log_regex)
      expected_log_regex = ['.*"component_name": "controller".*']
      check_log_file(resp["controller_log_file"], expected_log_regex)
  
imports: import copy
  import grpc
  import re
  import os
  import sys
  from typing import Dict
  import pytest
  import requests
  import ray
  from ray import serve
  from ray._private.test_utils import wait_for_condition
  import ray._private.ray_constants
  from ray.util.state import list_actors
  from ray.serve._private.constants import SERVE_NAMESPACE
  from ray.serve.tests.conftest import *
  from ray.tests.conftest import *
  from ray._private.test_utils import generate_system_config_map
  from ray.serve.schema import ServeInstanceDetails, HTTPOptionsSchema
  from ray.serve._private.common import ApplicationStatus, DeploymentStatus, DeploymentStatusTrigger, ReplicaState, ProxyStatus
  from ray.serve.generated import serve_pb2, serve_pb2_grpc
label_desc: Use image node_id 16 for calling a global function with example usage: test_put_with_logging_config(ray_start_stop) without return types