code: def set_topic_config(self, topic, value, kafka_version=(0, 10, )):
          
          config_data = dump_json(value)
  
          try:
              # Change value
              return_value = self.set(
                  "/config/topics/{topic}".format(topic=topic),
                  config_data
              )
              # Create change
              version = kafka_version[1]
  
              # this feature is supported in kafka 9 and kafka 10
              assert version in (9, 10), "Feature supported with kafka 9 and kafka 10"
  
              if version == 9:
                  # https://github.com/apache/kafka/blob/0.9.0.1/
                  #     core/src/main/scala/kafka/admin/AdminUtils.scala#L334
                  change_node = dump_json({
                      "version": 1,
                      "entity_type": "topics",
                      "entity_name": topic
                  })
              else:  # kafka 10
                  # https://github.com/apache/kafka/blob/0.10.2.1/
                  #     core/src/main/scala/kafka/admin/AdminUtils.scala#L574
                  change_node = dump_json({
                      "version": 2,
                      "entity_path": "topics/" + topic,
                  })
  
              self.create(
                  '/config/changes/config_change_',
                  change_node,
                  sequence=True
              )
          except NoNodeError as e:
              _log.error(
                  "topic {topic} not found.".format(topic=topic)
              )
              raise e
          return return_value
docs: Set configuration information for specified topic.
  
          :topic : topic whose configuration needs to be changed
          :value :  config value with which the topic needs to be
              updated with. This would be of the form key=value.
              Example 'cleanup.policy=compact'
          :kafka_version :tuple kafka version the brokers are running on.
              Defaults to (0, 10, x). Kafka version 9 and kafka 10
              support this feature.