code: def check_not_generatorfunction(func):
      """Internal helper to verify that we are not decorating generator tests"""
      if inspect.isgeneratorfunction(func):
          raise RuntimeError(
              "{}: must not be decorated, is a generator test".format(
                  func.__name__
              )
          )
  
file_path: datalad/datalad/distributed/tests/ria_utils.py
imports: import inspect
  import os
  from functools import wraps
  from glob import glob
  from datalad.tests.utils_pytest import SkipTest, attr, create_tree
  from datalad.utils import Path
label_desc: Use image node_id 6 for calling a global function with example usage: check_not_generatorfunction(func) without return types