docstr: Format kwargs for `fit` method.
  
  Parameters
  ----------
  kwargs
      dictionary of Kwargs to format. See `fit` method for details.
  
  Returns
  -------
  Formatted kwargs.
code: def format_fit_kwargs(self, fit_kwargs: Dict) -> Dict:
      """Format kwargs for `fit` method.
  
      Parameters
      ----------
      kwargs
          dictionary of Kwargs to format. See `fit` method for details.
  
      Returns
      -------
      Formatted kwargs.
      """
      return dict(
          tol=fit_kwargs.get("tol", 1e-3),
          max_iter=(lambda v: 100 if v is None else v)(
              fit_kwargs.get("max_epochs", None)
          ),
          n_init=fit_kwargs.get("n_init", 1),
          init_params=fit_kwargs.get("init_params", "kmeans"),
          verbose=fit_kwargs.get("verbose", 0),
      )
  
file_path: alibi-detect/alibi_detect/od/sklearn/gmm.py
imports: import numpy
  from typing import Dict
  from sklearn.mixture import GaussianMixture
  from alibi_detect.od.sklearn.base import SklearnOutlierDetector
label_desc: Use image node_id 3 for calling the GMMSklearn obj's underlying member method code with example usage: obj.format_fit_kwargs(fit_kwargs) and returns: dict