code: def test_csv():
      i = Interval(1, 2, "y", canvas_height=5)
      r = Rectangle(1, 2, 3, 4)
      q = Quadrilateral(np.arange(8).reshape(4, 2), 200, 400)
      l = Layout([i, r, q], page_data={"width": 200, "height": 200})
  
      _l = load_csv("tests/fixtures/io/layout.csv")
      assert _l != l
      _l.page_data = {"width": 200, "height": 200}
      assert _l == l
  
      i2 = i  # <- Allow mixmode loading
      r2 = TextBlock(r, id=24)
      q2 = TextBlock(q, text="test", parent=45)
      l2 = Layout([i2, r2, q2])
  
      _l2 = load_csv("tests/fixtures/io/layout_textblock.csv")
      assert _l2 == l2
  
imports: import numpy
  from layoutparser.elements import Interval, Rectangle, Quadrilateral, TextBlock, Layout
  from layoutparser import load_json, load_dict, load_csv, load_pdf
label_desc: Use image node_id 2 for calling a global function with example usage: test_csv() without return types