code: def validate_metrics_created(no_config_snapshots=False):
      test_utils.delete_all_snapshots()
      global NUM_STARTUP_CFG
      # Reset NUM_STARTUP_CFG as we are deleting snapshots in the previous step
      NUM_STARTUP_CFG = 0
      test_utils.start_torchserve(
          snapshot_file=snapshot_file,
          no_config_snapshots=no_config_snapshots,
      )
      if not no_config_snapshots:
          NUM_STARTUP_CFG += 1
  
      assert len(glob.glob("logs/model_metrics.log")) == 1
      assert len(glob.glob("logs/ts_metrics.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 4 for calling a global function with example usage: validate_metrics_created(no_config_snapshots) without return types