class_docstr: A simple ping-pong style heartbeat that runs in a thread.
class_docstr_tok: ["A","simple","ping-pong","style","heartbeat","that","runs","in","a","thread","."]
code: def _try_bind_socket(self):
      c = ":" if self.transport == "tcp" else "-"
      return self.socket.bind(
          f"{self.transport}://{self.ip}" + c + str(self.port)
      )
  
file_path: catboost/contrib/python/ipykernel/py3/ipykernel/heartbeat.py
imports: import errno
  import socket
  from pathlib import Path
  from threading import Thread
  import zmq
  from jupyter_client.localinterfaces import localhost
label_desc: Use image node_id 3 for calling the Heartbeat obj's underlying member method code with example usage: obj._try_bind_socket() and returns: self