docstr: Gets the attempt number of this parallel subtask. First attempt is numbered 0.
docstr_tok: ["Gets","the","attempt","number","of","this","parallel","subtask",".","First","attempt","is","numbered","0","."]
code: def get_attempt_number(self) -> int:
      """
      Gets the attempt number of this parallel subtask. First attempt is numbered 0.
      """
      return self._runtime_context.getAttemptNumber()
  
imports: from pyflink.datastream import RuntimeContext
  from pyflink.datastream.state import AggregatingStateDescriptor, AggregatingState, ReducingStateDescriptor, ReducingState, MapStateDescriptor, MapState, ListStateDescriptor, ListState, ValueStateDescriptor, ValueState
  from pyflink.fn_execution.embedded.state_impl import KeyedStateBackend
  from pyflink.fn_execution.metrics.embedded.metric_impl import MetricGroupImpl
  from pyflink.metrics import MetricGroup
label_desc: Use image node_id 6 for calling the StreamingRuntimeContext obj's underlying member method code with example usage: obj.get_attempt_number() and returns: self