code: def _check_cusolver_dev_info_if_synchronization_allowed(
      routine, dev_info
  ):
      # `dev_info` contains integers, the status code of a cuSOLVER
      # routine call. It is referred to as "infoArray" or "devInfo" in the
      # official cuSOLVER documentation.
      assert isinstance(dev_info, _core.ndarray)
      config_linalg = cupyx._ufunc_config.get_config_linalg()
      # Only 'ignore' and 'raise' are currently supported.
      if config_linalg == "ignore":
          return
  
      try:
          name = routine.__name__
      except AttributeError:
          name = routine  # routine is a str
  
      assert config_linalg == "raise"
      if (dev_info != 0).any():
          raise linalg.LinAlgError(
              "Error reported by {} in cuSOLVER. devInfo = {}. Please refer"
              " to the cuSOLVER documentation.".format(name, dev_info)
          )
  
file_path: cupy/cupy/linalg/_util.py
imports: import os
  import numpy
  from numpy import linalg
  import cupy
  import cupy._util
  from cupy import _core
  import cupyx
label_desc: Use image node_id 7 for calling a global function with example usage: _check_cusolver_dev_info_if_synchronization_allowed(routine, dev_info) without return types