docstr: Returns the name of the task in which the UDF runs, as assigned during plan construction.
docstr_tok: ["Returns","the","name","of","the","task","in","which","the","UDF","runs",",","as","assigned","during","plan","construction","."]
code: def get_task_name(self) -> str:
      """
      Returns the name of the task in which the UDF runs, as assigned during plan construction.
      """
      return self._task_name
  
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 2 for calling the StreamingRuntimeContext obj's underlying member method code with example usage: obj.get_task_name() and returns: self