docstr: Creates an xgboost model using specified or default parameters.
docstr_tok: ["Creates","an","xgboost","model","using","specified","or","default","parameters","."]
code: def _create_xgboost_model(model_params: Optional[dict] = None):
      """
      Creates an xgboost model using specified or default parameters.
      """
      if model_params is None:
          model_params = {
              "max_depth": 5,
              "n_jobs": -1,
              "verbosity": 1,
              "objective": "reg:squarederror",
          }
      return xgboost.sklearn.XGBModel(**model_params)
  
imports: from typing import Any, Dict, List, Optional, Union
  import copy
  import numpy
  import pandas
  import xgboost
  import gc
  from collections import defaultdict
  from gluonts.core.component import equals, validated
label_desc: Use image node_id 2 for calling the QRX obj's underlying member method code with example usage: obj._create_xgboost_model(model_params) and returns: xgboost