code: def getBucketInfo(self, buckets):
      
  
      # For the category encoder, the bucket index is the category index
      bucketInfo = self.encoder.getBucketInfo(buckets)[0]
  
      categoryIndex = int(round(bucketInfo.value))
      category = self.indexToCategory[categoryIndex]
  
      return [EncoderResult(value=category, scalar=categoryIndex,
                           encoding=bucketInfo.encoding)]
docs: See the function description in base.py