code: def test(extra_args=None):
      try:
          import pytest
      except ImportError:
          raise ImportError("Need pytest>=3.0 to run tests")
      try:
          import hypothesis  # noqa
      except ImportError:
          raise ImportError("Need hypothesis>=3.58 to run tests")
      cmd = ["--skip-slow", "--skip-network", "--skip-db"]
      if extra_args:
          if not isinstance(extra_args, list):
              extra_args = [extra_args]
          cmd = extra_args
      cmd += [PKG]
      print("running: pytest {}".format(" ".join(cmd)))
      sys.exit(pytest.main(cmd))
  
label_desc: Use image node_id 1 for calling a global function with example usage: test(extra_args) without return types