code: def test_rotate_angle_array(self):
      ls = load_wkt("LINESTRING(240 400, 240 300, 300 300)")
      els = load_wkt("LINESTRING(220 320, 320 320, 320 380)")
      # check with degrees
      theta = np.array(90.0)
      rls = affinity.rotate(ls, theta)
      assert theta.item() == 90.0
      assert rls.equals(els)
      # check with radians
      theta = np.array(pi / 2)
      rls = affinity.rotate(ls, theta, use_radians=True)
      assert theta.item() == pi / 2
      assert rls.equals(els)
  
imports: import unittest
  from math import pi
  import numpy
  import pytest
  from shapely import affinity
  from shapely.geometry import Point
  from shapely.wkt import loads
label_desc: Use image node_id 3 for calling the TransformOpsTestCase obj's underlying member method code with example usage: obj.test_rotate_angle_array() without return types