code: def sensors_battery():
      """Return battery information."""
      try:
          percent, minsleft, power_plugged = cext.sensors_battery()
      except NotImplementedError:
          # no power source - return None according to interface
          return None
      power_plugged = power_plugged == 1
      if power_plugged:
          secsleft = _common.POWER_TIME_UNLIMITED
      elif minsleft == -1:
          secsleft = _common.POWER_TIME_UNKNOWN
      else:
          secsleft = minsleft * 60
      return _common.sbattery(percent, secsleft, power_plugged)
  
imports: import contextlib
  import errno
  import functools
  import os
  from collections import namedtuple
  from .None import _common
  from .None import _psposix
  from .None import _psutil_osx
  from .None import _psutil_posix
  from ._common import AccessDenied
  from ._common import conn_tmap
  from ._common import conn_to_ntuple
  from ._common import isfile_strict
  from ._common import memoize_when_activated
  from ._common import NoSuchProcess
  from ._common import parse_environ_block
  from ._common import usage_percent
  from ._common import ZombieProcess
  from ._compat import PermissionError
  from ._compat import ProcessLookupError
label_desc: Use image node_id 10 for calling a global function with example usage: sensors_battery() and returns: _common, None