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._attempt_number
  
imports: from typing import Dict
  from pyflink.datastream import RuntimeContext
  from pyflink.datastream.state import ValueStateDescriptor, ValueState, ListStateDescriptor, ListState, MapStateDescriptor, MapState, ReducingStateDescriptor, ReducingState, AggregatingStateDescriptor, AggregatingState
  from pyflink.fn_execution.coders import from_type_info, MapCoder, GenericArrayCoder
  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