class_docstr: This is a generator convert from an input element to the partition key, a string.
class_docstr_tok: ["This","is","a","generator","convert","from","an","input","element","to","the","partition","key",",","a","string","."]
docstr: A partitioner ensuring that each internal Flink partition ends up in the same Kinesis
  partition. This is achieved by using the index of the producer task as a PartitionKey.
docstr_tok: ["A","partitioner","ensuring","that","each","internal","Flink","partition","ends","up","in","the","same","Kinesis","partition",".","This","is","achieved","by","using","the","index","of","the","producer","task","as","a","PartitionKey","."]
code: def fixed() -> "PartitionKeyGenerator":
      """
      A partitioner ensuring that each internal Flink partition ends up in the same Kinesis
      partition. This is achieved by using the index of the producer task as a PartitionKey.
      """
      return PartitionKeyGenerator(
          get_gateway().jvm.org.apache.flink.connector.kinesis.table.FixedKinesisPartitionKeyGenerator()
      )
  
imports: from typing import Dict, Union, List
  from pyflink.common import SerializationSchema, DeserializationSchema, AssignerWithPeriodicWatermarksWrapper
  from pyflink.datastream.functions import SourceFunction
  from pyflink.datastream.connectors import Sink
  from pyflink.java_gateway import get_gateway
label_desc: Use image node_id 2 for calling the PartitionKeyGenerator obj's underlying member method code with example usage: obj.fixed() and returns: PartitionKeyGenerator