code: def _initialize_executor(executor_cls, hyperparameter_tune_kwargs):
      executor = executor_cls()
      executor.initialize(hyperparameter_tune_kwargs)
      return executor
  
imports: import pandas
  import pytest
  from autogluon.core.hpo.executors import CustomHpoExecutor, RayHpoExecutor
  from autogluon.core.models.ensemble.bagged_ensemble_model import BaggedEnsembleModel
  from autogluon.tabular.models import AbstractModel
label_desc: Use image node_id 1 for calling a global function with example usage: _initialize_executor(executor_cls, hyperparameter_tune_kwargs) and returns: executor