code: def test_example(example, module_name):
      try:
          main = getattr(import_module(module_name), "main")
      except ImportError as e:
          skip_exceptions = [
              "requires a GPU",
              "pylearn2",
              "dnn not available",
          ]
          if any([text in str(e) for text in skip_exceptions]):
              pytest.skip(e)
          else:
              raise
  
      main(num_epochs=1)
  
file_path: Lasagne/lasagne/tests/test_examples.py
imports: from glob import glob
  from importlib import import_module
  from os.path import basename
  from os.path import dirname
  from os.path import join
  from os.path import splitext
  import sys
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_example(example, module_name) without return types