code: def in_ipynb():
      """Check if we are in a jupyter notebook."""
      try:
          return "ZMQ" in get_ipython().__class__.__name__
      except NameError:
          return False
  
imports: from __future__ import annotations
  import contextlib
  import datetime
  import logging
  import os
  import pathlib
  import warnings
  from contextlib import contextmanager
  from copy import deepcopy
  from typing import Literal, Mapping, Optional
  from urllib.parse import urlparse
  import dask.utils
  import numpy
  import xarray
  import yaml
  from yaml import BaseLoader, UnsafeLoader
  from satpy._compat import DTypeLike
label_desc: Use image node_id 10 for calling a global function with example usage: in_ipynb() and returns: unknown, False