class_docstr: The ``ClassificationInputMixin`` class provides utility methods for handling classification targets.
  :class:`~flash.core.data.io.input.Input` objects that extend ``ClassificationInputMixin`` should do the following:
  
  * In the ``load_data`` method, include a call to ``load_target_metadata``. This will determine the format of the
    targets and store metadata like ``labels`` and ``num_classes``.
  * In the ``load_sample`` method, use ``format_target`` to convert the target to a standard format for use with our
    tasks.
class_docstr_tok: ["The","``","ClassificationInputMixin","``","class","provides","utility","methods","for","handling","classification","targets",".",":","class",":","`","~flash.core.data.io.input.Input","`","objects","that","extend","``","ClassificationInputMixin","``","should","do","the","following",":","*","In","the","``","load_data","``","method",",","include","a","call","to","``","load_target_metadata","``",".","This","will","determine","the","format","of","the","targets","and","store","metadata","like","``","labels","``","and","``","num_classes","``",".","*","In","the","``","load_sample","``","method",",","use","``","format_target","``","to","convert","the","target","to","a","standard","format","for","use","with","our","tasks","."]
docstr: Format a single target according to the previously computed target format and metadata.
  
  Args:
      target: The target to format.
  
  Returns:
      The formatted target.
docstr_tok: ["Format","a","single","target","according","to","the","previously","computed","target","format","and","metadata",".","Args",":","target",":","The","target","to","format",".","Returns",":","The","formatted","target","."]
code: def format_target(self, target: Any) -> Any:
      """Format a single target according to the previously computed target format and metadata.
  
      Args:
          target: The target to format.
  
      Returns:
          The formatted target.
  
      """
      return getattr(self, "target_formatter", lambda x: x)(target)
  
imports: from typing import Any, List, Optional
  from flash.core.data.properties import Properties
  from flash.core.data.utilities.classification import TargetFormatter, get_target_formatter
label_desc: Use image node_id 2 for calling the ClassificationInputMixin obj's underlying member method code with example usage: obj.format_target(target) and returns: getattr