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._runtime_context.getTaskName()
  
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 2 for calling the StreamingRuntimeContext obj's underlying member method code with example usage: obj.get_task_name() and returns: self