class_docstr: Mixin that dynamically wraps methods to return container based on config.
  
  Currently `_SetOutputMixin` wraps `transform` and `fit_transform` and configures
  it based on `set_output` of the global configuration.
  
  `set_output` is only defined if `get_feature_names_out` is defined and
  `auto_wrap_output_keys` is the default value.
class_docstr_tok: ["Mixin","that","dynamically","wraps","methods","to","return","container","based","on","config",".","Currently","`","_SetOutputMixin","`","wraps","`","transform","`","and","`","fit_transform","`","and","configures","it","based","on","`","set_output","`","of","the","global","configuration",".","`","set_output","`","is","only","defined","if","`","get_feature_names_out","`","is","defined","and","`","auto_wrap_output_keys","`","is","the","default","value","."]
docstr: Set output container.
  
  See :ref:`sphx_glr_auto_examples_miscellaneous_plot_set_output.py`
  for an example on how to use the API.
  
  Parameters
  ----------
  transform : {"default", "pandas"}, default=None
      Configure output of `transform` and `fit_transform`.
  
      - `"default"`: Default output format of a transformer
      - `"pandas"`: DataFrame output
      - `None`: Transform configuration is unchanged
  
  Returns
  -------
  self : estimator instance
      Estimator instance.
docstr_tok: ["Set","output","container",".","See",":","ref",":","`","sphx_glr_auto_examples_miscellaneous_plot_set_output.py","`","for","an","example","on","how","to","use","the","API",".","Parameters","--","--","--","--","--","transform",":","{","``","default","''",",","``","pandas","''","}",",","default=None","Configure","output","of","`","transform","`","and","`","fit_transform","`",".","-","`","``","default","''","`",":","Default","output","format","of","a","transformer","-","`","``","pandas","''","`",":","DataFrame","output","-","`","None","`",":","Transform","configuration","is","unchanged","Returns","--","--","--","-","self",":","estimator","instance","Estimator","instance","."]
code: def set_output(self, *, transform=None):
      """Set output container.
  
      See :ref:`sphx_glr_auto_examples_miscellaneous_plot_set_output.py`
      for an example on how to use the API.
  
      Parameters
      ----------
      transform : {"default", "pandas"}, default=None
          Configure output of `transform` and `fit_transform`.
  
          - `"default"`: Default output format of a transformer
          - `"pandas"`: DataFrame output
          - `None`: Transform configuration is unchanged
  
      Returns
      -------
      self : estimator instance
          Estimator instance.
      """
      if transform is None:
          return self
  
      if not hasattr(self, "_sklearn_output_config"):
          self._sklearn_output_config = {}
  
      self._sklearn_output_config["transform"] = transform
      return self
  
file_path: catboost/contrib/python/scikit-learn/py3/sklearn/utils/_set_output.py
imports: from functools import wraps
  from scipy.sparse import issparse
  from .._config import get_config
  from .None import check_pandas_support
  from ._available_if import available_if
label_desc: Use image node_id 2 for calling the _SetOutputMixin obj's underlying member method code with example usage: obj.set_output() and returns: self, self