code: def chain(self, future):
      self.add_callback(future.success)
      self.add_errback(future.failure)
      return self
  
file_path: kafka-python/kafka/future.py
imports: from __future__ import absolute_import
  import functools
  import logging
label_desc: Use image node_id 10 for calling the Future obj's underlying member method code with example usage: obj.chain(future) and returns: self