code: def test_extend(sphere, uniform, ant):
      # test with Iterable
      multi = MultiBlock([sphere, ant])
      new_multi = [uniform, uniform]
      multi.extend(new_multi)
      assert len(multi) == 4
      assert multi.count(uniform) == 2
  
      # test with a MultiBlock
      multi = MultiBlock([sphere, ant])
      new_multi = MultiBlock({"uniform1": uniform, "uniform2": uniform})
      multi.extend(new_multi)
      assert len(multi) == 4
      assert multi.count(uniform) == 2
      assert multi.keys()[-2] == "uniform1"
      assert multi.keys()[-1] == "uniform2"
  
imports: import pathlib
  import platform
  import weakref
  import numpy
  import pytest
  import vtk
  import pyvista
  from pyvista import ImageData, MultiBlock, PolyData, RectilinearGrid, StructuredGrid, examples
label_desc: Use image node_id 14 for calling a global function with example usage: test_extend(sphere, uniform, ant) without return types