class_docstr: An example data source that loads data from an sklearn data ``Bunch``.
docstr: Gets the ``data`` and ``target`` attributes from the ``Bunch`` and passes them to ``super().load_data``.
  
  Args:
      data: The scikit-learn data ``Bunch``.
      target_formatter: Optionally provide a ``TargetFormatter`` to control how targets are formatted.
  
  Returns:
      A sequence of samples / sample metadata.
docstr_tok: ["Gets","the","``","data","``","and","``","target","``","attributes","from","the","``","Bunch","``","and","passes","them","to","``","super","(",")",".load_data","``",".","Args",":","data",":","The","scikit-learn","data","``","Bunch","``",".","target_formatter",":","Optionally","provide","a","``","TargetFormatter","``","to","control","how","targets","are","formatted",".","Returns",":","A","sequence","of","samples","\/","sample","metadata","."]
code: def load_data(
      self,
      data: Bunch,
      target_formatter: Optional[TargetFormatter] = None,
  ) -> Sequence[Dict[str, Any]]:
      """Gets the ``data`` and ``target`` attributes from the ``Bunch`` and passes them to ``super().load_data``.
  
      Args:
          data: The scikit-learn data ``Bunch``.
          target_formatter: Optionally provide a ``TargetFormatter`` to control how targets are formatted.
  
      Returns:
          A sequence of samples / sample metadata.
  
      """
      return super().load_data(
          data.data, data.target, target_formatter=target_formatter
      )
  
imports: from typing import Any, Callable, Collection, Dict, List, Optional, Sequence, Tuple, Type
  import numpy
  import torch
  from flash.core.data.base_viz import BaseVisualization
  from flash.core.data.callback import BaseDataFetcher
  from flash.core.data.data_module import DataModule
  from flash.core.data.io.classification_input import ClassificationInputMixin
  from flash.core.data.io.input import DataKeys, Input
  from flash.core.data.io.input_transform import InputTransform
  from flash.core.data.utilities.classification import TargetFormatter
  from flash.core.data.utilities.samples import to_samples
  from flash.core.utilities.imports import _SKLEARN_AVAILABLE
  from flash.core.utilities.stages import RunningStage
  from flash.core.utilities.types import INPUT_TRANSFORM_TYPE
label_desc: Use image node_id 1 for calling the TemplateSKLearnClassificationInput obj's underlying member method code with example usage: obj.load_data(data, target_formatter) and returns: super