code: def _fetch_partition_state(self, topic_id, partition_id):
          
          state_path = "/brokers/topics/{topic_id}/partitions/{p_id}/state"
          try:
              partition_state = self.get(
                  state_path.format(topic_id=topic_id, p_id=partition_id),
              )
              return partition_state
          except NoNodeError:
              return {}
docs: Fetch partition-state for given topic-partition.