code: def pytest_ignore_collect(path):
      if not torch_available and path.fnmatch("test_pytorch.py"):
          warnings.warn(
              UserWarning(
                  "Tests that require PyTorch and torchvision were skipped because those libraries are not installed."
              )
          )
          return True
  
      if not imgaug_available and path.fnmatch("test_imgaug.py"):
          warnings.warn(
              UserWarning(
                  "Tests that require imgaug were skipped because this library is not installed."
              )
          )
          return True
  
      return False
  
file_path: albumentations/tests/conftest.py
imports: import multiprocessing
  import sys
  import warnings
  import numpy
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: pytest_ignore_collect(path) and returns: False, True, True