class_docstr: Wrapper class around underlying C implementation.
class_docstr_tok: ["Wrapper","class","around","underlying","C","implementation","."]
code: def connections(self, kind="inet"):
      if kind not in conn_tmap:
          raise ValueError(
              "invalid %r kind argument; choose between %s"
              % (kind, ", ".join([repr(x) for x in conn_tmap]))
          )
      families, types = conn_tmap[kind]
      with catch_zombie(self):
          rawlist = cext.proc_connections(self.pid, families, types)
      ret = []
      for item in rawlist:
          fd, fam, type, laddr, raddr, status = item
          nt = conn_to_ntuple(
              fd, fam, type, laddr, raddr, status, TCP_STATUSES
          )
          ret.append(nt)
      return ret
  
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 22 for calling the Process obj's underlying member method code with example usage: obj.connections(kind) and returns: ret