code: def filter_environments(self, environments):
      filtered_environments = []
      for idx, environment in enumerate(environments):
          path = os.path.join(self.experiments_path, environment)
          experiments = [e.name for e in os.scandir(path) if e.is_dir()]
  
          # take only the last updated experiment directory
          last_experiment_dir = max(
              [os.path.join(path, root) for root in experiments],
              key=os.path.getctime,
          )
  
          # make sure there is a csv file inside it
          for file_path in os.listdir(last_experiment_dir):
              full_file_path = os.path.join(
                  last_experiment_dir, file_path
              )
              if os.path.isfile(full_file_path) and file_path.endswith(
                  ".csv"
              ):
                  filtered_environments.append(
                      (environment, full_file_path)
                  )
  
      return filtered_environments
  
file_path: coach/rl_coach/plot_atari.py
imports: import argparse
  import os
  import matplotlib
  import matplotlib.pyplot
  from rl_coach.dashboard_components.signals_file import SignalsFile
label_desc: Use image node_id 3 for calling the FigureMaker obj's underlying member method code with example usage: obj.filter_environments(environments) and returns: filtered_environments