code: def collect_presets():
      """
      Collect all presets in presets directory
      :yield: preset name
      """
      for preset_name in all_presets():
          # if it isn't importable, still include it so we can fail the test
          if not importable(preset_name):
              yield preset_name
          # otherwise, make sure it has test parameters before including it
          elif has_test_parameters(preset_name):
              yield preset_name
  
file_path: coach/rl_coach/tests/utils/presets_utils.py
imports: import os
  import pytest
  from importlib import import_module
  from rl_coach.tests.utils.definitions import Definitions
label_desc: Use image node_id 6 for calling a global function with example usage: collect_presets() without return types