code: def in_librarymode():
      """Returns whether DataLad is requested to run in "library mode"
  
      In this mode DataLad aims to behave without the assumption that it is
      itself the front-end of a process and in full control over messaging
      and parameters.
  
      Returns
      -------
      bool
      """
      return __runtime_mode == "library"
  
file_path: datalad/datalad/__init__.py
imports: import atexit
  import os
  from .config import ConfigManager, warn_on_undefined_git_identity
  from datalad.utils import get_encoding_info, get_envvars_info, getpwd
  from .log import lgr
  from .support.sshconnector import SSHManager
  from ._version import get_versions
label_desc: Use image node_id 2 for calling a global function with example usage: in_librarymode() and returns: unknown