code: def expect_response(self):
      if self.required_acks == 0:  # pylint: disable=no-member
          return False
      return True
  
imports: from __future__ import absolute_import
  from kafka.protocol.api import Request, Response
  from kafka.protocol.types import Int16, Int32, Int64, String, Array, Schema, Bytes
label_desc: Use image node_id 1 for calling the ProduceRequest obj's underlying member method code with example usage: obj.expect_response() and returns: True, False