class_docstr: PulsarWriter
class_docstr_tok: ["PulsarWriter"]
docstr: Creates a `PulsarWriter` for writing messages to a pulsar topic
  
  Args:
    service_url: A `tf.string` tensor containing the service url of pulsar broker.
      For example: "pulsar://localhost:6650".
    topic: A `tf.string` tensor containing the topic name.
docstr_tok: ["Creates","a","`","PulsarWriter","`","for","writing","messages","to","a","pulsar","topic","Args",":","service_url",":","A","`","tf.string","`","tensor","containing","the","service","url","of","pulsar","broker",".","For","example",":","``","pulsar",":","\/\/localhost:6650","''",".","topic",":","A","`","tf.string","`","tensor","containing","the","topic","name","."]
code: def __init__(self, service_url, topic):
      """Creates a `PulsarWriter` for writing messages to a pulsar topic
  
      Args:
        service_url: A `tf.string` tensor containing the service url of pulsar broker.
          For example: "pulsar://localhost:6650".
        topic: A `tf.string` tensor containing the topic name.
      """
      with tf.name_scope("PulsarWriter"):
          resource = core_ops.io_pulsar_writable_init(
              service_url, topic
          )
          self._resource = resource
  
imports: import tensorflow
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 1 to create a new PulsarWriter object  with example: obj = PulsarWriter(service_url, topic)