code: def get_model_name(
      ag_args: Dict[str, Any], model_type: Type[AbstractTimeSeriesModel]
  ) -> str:
      name = ag_args.get("name")
      if name is None:
          name_stem = re.sub(r"Model$", "", model_type.__name__)
          name_prefix = ag_args.get("name_prefix", "")
          name_suffix = ag_args.get("name_suffix", "")
          name = name_prefix + name_stem + name_suffix
      return name
  
file_path: autogluon/timeseries/src/autogluon/timeseries/models/presets.py
imports: import copy
  import logging
  import re
  from collections import defaultdict
  from typing import Any, Dict, List, Optional, Type, Union
  from autogluon.common import space
  from autogluon.core import constants
  from autogluon.timeseries.metrics import TimeSeriesScorer
  from .None import ADIDAModel, AutoARIMAModel, AutoCESModel, AutoETSModel, AverageModel, CrostonSBAModel, DeepARModel, DirectTabularModel, DLinearModel, DynamicOptimizedThetaModel, ETSModel, IMAPAModel, NaiveModel, NPTSModel, PatchTSTModel, RecursiveTabularModel, SeasonalAverageModel, SeasonalNaiveModel, SimpleFeedForwardModel, TemporalFusionTransformerModel, ThetaModel, WaveNetModel, ZeroModel
  from .abstract import AbstractTimeSeriesModel
  from .multi_window.multi_window_model import MultiWindowBacktestingModel
label_desc: Use image node_id 5 for calling a global function with example usage: get_model_name(ag_args, model_type) and returns: name