docs: def configure(settings: Settings):
      """
      Configure sets the current ambient settings bag to the one given.
      """
      if not settings or not isinstance(settings, Settings):
          raise TypeError('Settings is expected to be non-None and of type Settings')
      global SETTINGS  # pylint: disable=global-statement
      SETTINGS = settings