code: def filter_collections_by_prefix(prefix):
      col_list = list_collections()
      logger.info(f"all collections: {col_list}")
      res = []
      for col in col_list:
          if col.startswith(prefix):
              if any(
                  index_name in col for index_name in all_index_types
              ):
                  res.append(col)
              else:
                  logger.warning(
                      f"collection {col} has no supported index, skip"
                  )
      logger.info(f"filtered collections with prefix {prefix}: {res}")
      return res
  
file_path: milvus/tests/python_client/deploy/scripts/utils.py
imports: import sys
  import copy
  import time
  from loguru import logger
  import pymilvus
  from pymilvus import FieldSchema, CollectionSchema, DataType, Collection, list_collections
label_desc: Use image node_id 1 for calling a global function with example usage: filter_collections_by_prefix(prefix) and returns: res