code: def test_after_serialization(hd, test_method, tmpdir):
      joblib.dump(
          hd,
          os.path.join(
              str(tmpdir), "{}.joblib".format(hd.__class__.__name__)
          ),
      )
      hd_loaded = joblib.load(
          os.path.join(
              str(tmpdir), "{}.joblib".format(hd.__class__.__name__)
          )
      )
  
      assert hd.__class__ == hd_loaded.__class__
      test_method(hd_loaded)
  
imports: import math
  import os
  from collections import Counter
  import joblib
  import numpy
  import pytest
  from neuraxle.base import Identity
  from neuraxle.hyperparams.distributions import Choice, LogNormal, LogUniform, Normal, PriorityChoice, RandInt, Uniform, get_index_in_list_with_bool
  from neuraxle.hyperparams.scipy_distributions import Gaussian, Histogram, Poisson, ScipyContinuousDistributionWrapper, ScipyDiscreteDistributionWrapper, ScipyLogUniform, StdMeanLogNormal
  from neuraxle.hyperparams.space import HyperparameterSpace
  from scipy.stats import gamma, norm, randint, uniform
label_desc: Use image node_id 19 for calling a global function with example usage: test_after_serialization(hd, test_method, tmpdir) without return types