code: def test_is_jupyter(notebook_types, output_notebook, kernel_name):
      # Test on the terminal
      assert is_jupyter() is False
      assert is_databricks() is False
  
      # Test on Jupyter notebook
      execute_notebook(
          notebook_types,
          output_notebook,
          kernel_name=kernel_name,
      )
      results = read_notebook(output_notebook)
  
      assert results["is_jupyter"]
      assert not results["is_databricks"]
  
file_path: recommenders/tests/unit/recommenders/utils/test_notebook_utils.py
imports: import pytest
  import nbclient
  from pathlib import Path
  from recommenders.utils.notebook_utils import is_jupyter, is_databricks, execute_notebook, read_notebook, _update_parameters
label_desc: Use image node_id 3 for calling a global function with example usage: test_is_jupyter(notebook_types, output_notebook, kernel_name) without return types