class_docstr: Label-encoding of the target dimensions.
class_docstr_tok: ["Label-encoding","of","the","target","dimensions","."]
code: def __init__(self, field_name: str, target_field: str) -> None:
      self.field_name = field_name
      self.target_field = target_field
  
imports: from typing import Callable, Iterator, List, Optional, Tuple, Type
  import numpy
  from toolz import valmap
  from gluonts.core.component import validated, tensor_to_numpy
  from gluonts.dataset.common import DataEntry
  from gluonts.exceptions import assert_data_error
  from ._base import FlatMapTransformation, MapTransformation, SimpleTransformation
label_desc: Use image node_id 1 to create a new TargetDimIndicator object from inherited base classes: SimpleTransformation with example: obj = TargetDimIndicator(field_name, target_field)