code: def test_layout_comp():
      a = Layout([Rectangle(1, 2, 3, 4)])
      b = Layout([Rectangle(1, 2, 3, 4)])
  
      assert a == b
  
      a.append(Rectangle(1, 2, 3, 5))
      assert a != b
      b.append(Rectangle(1, 2, 3, 5))
      assert a == b
  
      a = Layout([TextBlock(Rectangle(1, 2, 3, 4))])
      assert a != b
  
file_path: layout-parser/tests/test_elements.py
imports: import pytest
  import numpy
  import pandas
  from layoutparser.elements import Interval, Rectangle, Quadrilateral, TextBlock, Layout
  from layoutparser.elements.errors import InvalidShapeError, NotSupportedShapeError
label_desc: Use image node_id 9 for calling a global function with example usage: test_layout_comp() without return types