code: def test_async_logging():
      """Validates that we can use async_logging flag while starting Torchserve"""
      # Need to stop torchserve as we need to check if log files get generated with 'aysnc_logging' flag
      test_utils.stop_torchserve()
      for f in glob.glob("logs/*.log"):
          os.remove(f)
      # delete_all_snapshots()
      async_config_file = (
          test_utils.ROOT_DIR + "async-log-config.properties"
      )
      with open(async_config_file, "w+") as f:
          f.write("async_logging=true")
          f.write("service_envelope=kserve")
      test_utils.start_torchserve(snapshot_file=async_config_file)
      assert len(glob.glob("logs/access_log.log")) == 1
      assert len(glob.glob("logs/model_log.log")) == 1
      assert len(glob.glob("logs/ts_log.log")) == 1
  
imports: import glob
  import os
  import platform
  import shutil
  import time
  from os import path
  import requests
  import test_utils
label_desc: Use image node_id 13 for calling a global function with example usage: test_async_logging() without return types