code: def forward_tunnel(local_port, remote_host, remote_port, transport):
      # this is a little convoluted, but lets me configure things for the Handler
      # object.  (SocketServer doesn't give Handlers any way to access the outer
      # server normally.)
      class SubHander(Handler):
          chain_host = remote_host
          chain_port = remote_port
          ssh_transport = transport
  
      ForwardServer(
          ("127.0.0.1", local_port), SubHander
      ).serve_forever()
  
file_path: catboost/contrib/python/pyzmq/py2/zmq/ssh/forward.py
imports: from __future__ import print_function
  import logging
  import select
label_desc: Use image node_id 1 for calling a global function with example usage: forward_tunnel(local_port, remote_host, remote_port, transport) without return types