code: def read_csv_paths(test_path, filename_pattern, read_csv_tries=200):
      csv_paths = []
      tries_counter = 0
      while not csv_paths:
          csv_paths = glob.glob(
              path.join(test_path, "*", filename_pattern)
          )
          if tries_counter > read_csv_tries:
              break
          tries_counter += 1
          time.sleep(1)
      return csv_paths
  
imports: import argparse
  import glob
  import os
  import shutil
  import signal
  import subprocess
  import sys
  from importlib import import_module
  from os import path
  import numpy
  import pandas
  import time
  import pytest
  from rl_coach.logger import screen
label_desc: Use image node_id 1 for calling a global function with example usage: read_csv_paths(test_path, filename_pattern, read_csv_tries) and returns: csv_paths