code: def _check_plotly_extension():
      try:
          p = subprocess.Popen(
              ["jupyter", "labextension", "check", "jupyterlab-plotly"],
              stdout=subprocess.PIPE,
              stderr=subprocess.PIPE,
          ).communicate()
          if "enabled" not in str(p[1]):
              warnings.warn(
                  'Are you running in Jupyter Lab? The extension "jupyterlab-plotly" was not found and is required for Plotly visualizations in Jupyter Lab.',
                  JupyterPlotlyWarning,
              )
      except FileNotFoundError:
          # jupyter not installed
          pass
  
imports: import subprocess
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: _check_plotly_extension() without return types