code: def test_get_by_name_2():
      """Assert that get_by_name raises TypeError with a incorrect operator name."""
  
      assert_raises(
          TypeError,
          get_by_name,
          "RandomForestRegressor",
          tpot_obj.operators,
      )
      # use correct name
      ret_op_class = get_by_name(
          "RandomForestClassifier", tpot_obj.operators
      )
  
imports: from tqdm import tqdm
  import numpy
  from os import remove, path
  from tpot import TPOTClassifier, TPOTRegressor
  from tpot.export_utils import export_pipeline, generate_import_code, _indent, generate_pipeline_code, get_by_name, set_param_recursive
  from tpot.operator_utils import TPOTOperatorClassFactory
  from tpot.config.classifier import classifier_config_dict
  from sklearn.datasets import load_digits
  from sklearn.model_selection import train_test_split
  from deap import creator
  from nose.tools import assert_raises, assert_equal, nottest
label_desc: Use image node_id 19 for calling a global function with example usage: test_get_by_name_2() without return types