code: def add_both(self, f, *args, **kwargs):
      self.add_callback(f, *args, **kwargs)
      self.add_errback(f, *args, **kwargs)
      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 9 for calling the Future obj's underlying member method code with example usage: obj.add_both(f) and returns: self