code: def run_metrics_location_var(
      custom_path=test_utils.ROOT_DIR, no_config_snapshots=False
  ):
      test_utils.delete_all_snapshots()
      test_utils.start_torchserve(
          no_config_snapshots=no_config_snapshots
      )
  
      if os.access(custom_path, os.W_OK):
          assert len(glob.glob(custom_path + "/ts_metrics.log")) == 1
          assert len(glob.glob(custom_path + "/model_metrics.log")) == 1
  
imports: import glob
  import os
  import platform
  import re
  import shutil
  import subprocess
  import time
  from os import path
  import requests
  import test_utils
label_desc: Use image node_id 17 for calling a global function with example usage: run_metrics_location_var(custom_path, no_config_snapshots) without return types