code: def get_collections(prefix, check=False):
      logger.info("\nList collections...")
      col_list = filter_collections_by_prefix(prefix)
      logger.info(f"collections_nums: {len(col_list)}")
      # list entities if collections
      for name in col_list:
          c = Collection(name=name)
          if pymilvus_version >= "2.2.0":
              c.flush()
          else:
              c.num_entities
          num_entities = c.num_entities
          logger.info(f"{name}: {num_entities}")
          if check:
              assert num_entities >= 3000
      return col_list
  
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 3 for calling a global function with example usage: get_collections(prefix, check) and returns: col_list