code: def requires_package(prerequisites):
      """A decorator to check if some python packages are installed.
  
      Example:
          >>> @requires_package('numpy')
          >>> func(arg1, args):
          >>>     return numpy.zeros(1)
          array([0.])
          >>> @requires_package(['numpy', 'non_package'])
          >>> func(arg1, args):
          >>>     return numpy.zeros(1)
          ImportError
      """
      return check_prerequisites(
          prerequisites, checker=_check_py_package
      )
  
imports: import collections.abc
  import functools
  import itertools
  import subprocess
  import warnings
  from collections import abc
  from importlib import import_module
  from inspect import getfullargspec
  from itertools import repeat
label_desc: Use image node_id 15 for calling a global function with example usage: requires_package(prerequisites) and returns: check_prerequisites