code: def check_export(op, tpot_obj):
      """Assert that a TPOT operator exports as a class constructor."""
      prng = np.random.RandomState(42)
      np.random.seed(42)
  
      args = []
      for type_ in op.parameter_types()[0][1:]:
          args.append(
              prng.choice(tpot_obj._pset.terminals[type_]).value
          )
      export_string = op.export(*args)
  
      assert export_string.startswith(
          op.__name__ + "("
      ) and export_string.endswith(")")
  
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 9 for calling a global function with example usage: check_export(op, tpot_obj) without return types