code: def wait_for_report(profilers_dir, num_reports):
      assert len(os.listdir(profilers_dir)) == num_reports
      return True
  
file_path: ray/python/ray/tests/test_runtime_env_profiler.py
imports: import os
  import glob
  import sys
  from pathlib import Path
  import pytest
  import subprocess
  import ray
  from ray._private.runtime_env.nsight import parse_nsight_config
  from ray._private.test_utils import wait_for_condition
  from ray.exceptions import RuntimeEnvSetupError
label_desc: Use image node_id 1 for calling a global function with example usage: wait_for_report(profilers_dir, num_reports) and returns: True