code: def _check_mock_available():
      if _mock_error is not None:
          raise RuntimeError(
              "mock is not available: Reason: {}".format(_mock_error)
          )
  
file_path: chainer/chainer/testing/helper.py
imports: import contextlib
  import sys
  import unittest
  import warnings
  import pkg_resources
label_desc: Use image node_id 1 for calling a global function with example usage: _check_mock_available() without return types