code: def test_lines(scales):
      # Create a Line chart with data of multiple shapes should work with binary serialization
      lines = bqplot.Lines(
          x=np.array([[0, 1], [0, 1, 2]], dtype=object),
          y=np.array([[0, 1], [1, 0, -1]], dtype=object),
          scales=scales,
      )
  
      lines = bqplot.Lines(
          x=[[0, 1], [0, 1]], y=[[0, 1], [1, 0]], scales=scales
      )
      state = lines.get_state()
  
      lines2 = bqplot.Lines(scales=scales)
      lines2.set_state(state)
      assert lines.x[0][0] == 0
      assert lines.x[0][1] == 1
      assert lines.x[1][1] == 1
  
imports: import bqplot
  import numpy
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_lines(scales) without return types