code: def get_default_estimator_if_not_specified(
      fit_args, fit_bagging_folds: int = 0
  ):
      if ("hyperparameters" not in fit_args) and (
          "presets" not in fit_args
      ):
          fit_args = fit_args.copy()
  
          fit_args["fit_weighted_ensemble"] = False
          if fit_bagging_folds > 0:
              fit_args = {
                  **dict(
                      num_bag_folds=fit_bagging_folds,
                      num_bag_sets=1,
                      num_stack_levels=0,
                  ),
                  **fit_args,
              }
              if ("ag_args_ensemble" not in fit_args) or (
                  "fold_fitting_strategy"
                  not in fit_args["ag_args_ensemble"]
              ):
                  fit_args["ag_args_ensemble"] = {
                      "fold_fitting_strategy": "sequential_local"
                  }
          if _is_lightgbm_available():
              fit_args[
                  "hyperparameters"
              ] = QuickFitDefaults.DEFAULT_LGBM_CONFIG
          else:
              fit_args[
                  "hyperparameters"
              ] = QuickFitDefaults.DEFAULT_RF_CONFIG
      return fit_args
  
imports: import logging
  from typing import Any, Dict, List, Optional, Tuple, Union
  import pandas
  from autogluon.common.utils.log_utils import verbosity2loglevel
  from autogluon.features import CategoryFeatureGenerator
  from autogluon.tabular import TabularPredictor
  from ..None import AnalysisState
  from ..analysis import AnomalyDetectorAnalysis, ApplyFeatureGenerator, AutoGluonModelEvaluator, AutoGluonModelQuickFit, Correlation, DistributionFit, FeatureInteraction, MissingValuesAnalysis, ProblemTypeControl, ShapAnalysis, TrainValidationSplit, XShiftDetector
  from ..analysis.base import AbstractAnalysis, BaseAnalysis, SaveArgsToState
  from ..analysis.dataset import DatasetSummary, LabelInsightsAnalysis, RawTypesAnalysis, Sampler, SpecialTypesAnalysis, VariableTypeAnalysis
  from ..analysis.interaction import FeatureDistanceAnalysis
  from ..state import is_key_present_in_state
  from ..utils.common import expand_nested_args_into_nested_maps, get_empty_dict_if_none
  from ..utils.defaults import QuickFitDefaults
  from ..visualization import AnomalyScoresVisualization, ConfusionMatrix, CorrelationVisualization, DatasetStatistics, DatasetTypeMismatch, ExplainForcePlot, ExplainWaterfallPlot, FeatureImportance, FeatureInteractionVisualization, LabelInsightsVisualization, MarkdownSectionComponent, MissingValues, ModelLeaderboard, PropertyRendererComponent, RegressionEvaluation, XShiftSummary
  from ..visualization.base import AbstractVisualization
  from ..visualization.interaction import FeatureDistanceAnalysisVisualization, PDPInteractions
  from ..visualization.layouts import SimpleVerticalLinearLayout
label_desc: Use image node_id 8 for calling a global function with example usage: get_default_estimator_if_not_specified(fit_args, fit_bagging_folds) and returns: fit_args