code: def is_plotly_installed():
      """Check if plotly is installed."""
      try:
          import plotly.graph_objects as go  # noqa: F401
      except ImportError:
          return False
      return True
  
file_path: nilearn/nilearn/_utils/helpers.py
imports: import functools
  import operator
  import os
  import warnings
label_desc: Use image node_id 7 for calling a global function with example usage: is_plotly_installed() and returns: True, False