code: def test_translate():
      np_points = np.array([1, 2, 3], np.int64)
      with pytest.warns(
          UserWarning, match="Points is not a float type"
      ):
          pset = pv.PointSet(np_points)
      pset.translate((4, 3, 2), inplace=True)
      assert np.allclose(pset.center, [5, 5, 5])
  
imports: import numpy
  import pytest
  import vtk
  import pyvista
  from pyvista.core.errors import PointSetCellOperationError, PointSetDimensionReductionError, PointSetNotSupported
label_desc: Use image node_id 11 for calling a global function with example usage: test_translate() without return types