code: def test_rectarea():
      a = pt(0, 0)
      b = pt(1, 1)
      r = rect(a, b)
      assert rectarea(r) == 1
  
      a = pt(-3, -1)
      b = pt(2, 5)
      r = rect(a, b)
      assert rectarea(r) == 30
  
imports: import math
  import pytest
  from hypothesis import given
  import hypothesis.strategies
  import numpy
  from pdftabextract.geom import pt, ptdist, vecangle, vecrotate, overlap, lineintersect, rect, rectcenter, rectarea, rectintersect, normalize_angle, normalize_angle_halfcircle, project_polarcoord_lines
label_desc: Use image node_id 10 for calling a global function with example usage: test_rectarea() without return types