code: def has_scipy(raise_if_unavailable=False):
      try:
          import scipy  # NOQA
  
          return True
      except ImportError:
          if not raise_if_unavailable:
              return False
          else:
              raise ImportError("Scipy is not available.")
  
imports: import platform
  from cuml.internals.safe_imports import gpu_only_import, UnavailableError
  from distutils.version import LooseVersion
label_desc: Use image node_id 13 for calling a global function with example usage: has_scipy(raise_if_unavailable) and returns: True, False