code: def get_chaos_yamls():
      """get chaos yaml file(s) from configured environment path"""
      chaos_env = get_env_variable_by_name(constants.CHAOS_CONFIG_ENV)
      if chaos_env is not None:
          if os.path.isdir(chaos_env):
              log.debug(f"chaos_env is a dir: {chaos_env}")
              return glob.glob(chaos_env + "chaos_*.yaml")
          elif os.path.isfile(chaos_env):
              log.debug(f"chaos_env is a file: {chaos_env}")
              return [chaos_env]
          else:
              # not a valid directory, return default
              pass
      log.debug(
          "not a valid directory or file, return default chaos config path"
      )
      return glob.glob(
          constants.TESTS_CONFIG_LOCATION + constants.ALL_CHAOS_YAMLS
      )
  
file_path: milvus/tests/python_client/chaos/chaos_commons.py
imports: import os
  import threading
  import time
  import glob
  from chaos import constants
  from yaml import full_load
  from utils.util_log import test_log
  from delayed_assert import expect
  import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: get_chaos_yamls() and returns: glob, glob, list