code: def rename_feature(from_: str, to: str) -> ExampleTransformFn:
      """Renames the feature.
  
      Note that if `to` already exists in the example, then it will be overridden.
  
      Arguments:
        from_: the name of the feature that must be renamed.
        to: the feature name to which it must be renamed.
  
      Returns:
        function that renames the feature of an example.
      """
  
      def apply_on_example(example: Example) -> Iterator[Example]:
          example[to] = example.pop(from_)
          yield example
  
      return apply_on_example
  
file_path: datasets/tensorflow_datasets/core/transform/transform_lib.py
imports: from __future__ import annotations
  import functools
  from typing import Any, Callable, Iterator, List, Mapping, Optional, Union
  import numpy
  from tensorflow_datasets.core import split_builder
label_desc: Use image node_id 2 for calling a global function with example usage: rename_feature(from_, to) and returns: apply_on_example