code: def _is_mpmath_installed(raise_error=False):
      """Check if mpmath is installed."""
      try:
          import mpmath  # noqa
  
          is_installed = True
      except OSError:  # pragma: no cover
          is_installed = False
      # Raise error (if needed) :
      if raise_error and not is_installed:  # pragma: no cover
          raise OSError(
              "mpmath needs to be installed. Please use `pip "
              "install mpmath`."
          )
      return is_installed
  
file_path: pingouin/pingouin/utils.py
imports: import numbers
  import numpy
  import pandas
  import itertools
  import collections.abc
  from tabulate import tabulate
  from .config import options
label_desc: Use image node_id 12 for calling a global function with example usage: _is_mpmath_installed(raise_error) and returns: is_installed