code: def test_serialize(data, expected_val, expected_type):
      data = external.serialize(data)
      assert expected_type == type(data), data
      assert expected_val == data
  
imports: import enum
  import pytest
  from yatest_lib import external
label_desc: Use image node_id 1 for calling a global function with example usage: test_serialize(data, expected_val, expected_type) without return types