code: def test_record_evaluation_callback_is_picklable(serializer):
      results = {}
      callback = lgb.record_evaluation(eval_result=results)
      callback_from_disk = pickle_and_unpickle_object(
          obj=callback, serializer=serializer
      )
      assert callback_from_disk.order == 20
      assert callback_from_disk.before_iteration is False
      assert callback.eval_result == callback_from_disk.eval_result
      assert callback.eval_result is results
  
file_path: LightGBM/tests/python_package_test/test_callback.py
imports: import pytest
  import lightgbm
  from .utils import SERIALIZERS, pickle_and_unpickle_object
label_desc: Use image node_id 5 for calling a global function with example usage: test_record_evaluation_callback_is_picklable(serializer) without return types