code: def test_get_by_name():
      """Assert that the Operator class returns operators by name appropriately."""
  
      assert (
          get_by_name("SelectPercentile", tpot_obj.operators).__class__
          == TPOTSelectPercentile.__class__
      )
      assert (
          get_by_name("SelectFromModel", tpot_obj.operators).__class__
          == TPOTSelectFromModel.__class__
      )
  
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 18 for calling a global function with example usage: test_get_by_name() without return types