code: def test_unary_union_multi(self):
      # Test of multipart input based on comment by @schwehr at
      # https://github.com/shapely/shapely/issues/47#issuecomment-21809308
      patches = MultiPolygon(
          [Point(xy).buffer(0.05) for xy in self.coords]
      )
      assert unary_union(patches).area == pytest.approx(0.71857254056)
      assert unary_union([patches, patches]).area == pytest.approx(
          0.71857254056
      )
  
file_path: shapely/shapely/tests/legacy/test_union.py
imports: import random
  import unittest
  from functools import partial
  from itertools import islice
  import pytest
  from shapely.errors import ShapelyDeprecationWarning
  from shapely.geometry import MultiPolygon, Point
  from shapely.ops import cascaded_union, unary_union
label_desc: Use image node_id 4 for calling the UnionTestCase obj's underlying member method code with example usage: obj.test_unary_union_multi() without return types