code: def is_continuous_integration() -> bool:
      """
      Determines whether we are running on the Continuous Integration system for
      notebook integration tests. This is used to speed up notebook integration
      tests (built on every pull request commit) by capping all expensive loops
      at a small number, rather than running until convergence. When building the
      docs (indicated by the presence of the `DOCS` environment variable), we
      need to run notebooks to completion, and this function returns `False`.
      Whether we are running on CI is determined by the presence of the `CI`
      environment variable.
      """
      if "DOCS" in os.environ:
          return False
  
      return "CI" in os.environ
  
imports: import os
  from typing import Any, Iterable, List, Sequence, Type, TypeVar
label_desc: Use image node_id 1 for calling a global function with example usage: is_continuous_integration() and returns: unknown, False