code: def test_translate_direction_collinear(is_negative, delta, bunny):
      mesh_in = bunny
      direction = np.array([0.0, 1.0, 0.0]) + delta
      if is_negative:
          direction *= -1
      mesh_out = mesh_in.copy()
      translate(mesh_out, direction=direction)
      points_in = mesh_in.points
      points_out = mesh_out.points
  
      if is_negative:
          assert np.allclose(points_in[:, 0], -points_out[:, 1])
          assert np.allclose(points_in[:, 1], points_out[:, 0])
          assert np.allclose(points_in[:, 2], points_out[:, 2])
      else:
          assert np.allclose(points_in[:, 0], points_out[:, 1])
          assert np.allclose(points_in[:, 1], -points_out[:, 0])
          assert np.allclose(points_in[:, 2], points_out[:, 2])
  
file_path: pyvista/tests/core/test_geometric_sources.py
imports: import numpy
  import pytest
  import vtk
  import pyvista
  from pyvista import examples
  from pyvista.core.utilities.geometric_objects import translate
label_desc: Use image node_id 5 for calling a global function with example usage: test_translate_direction_collinear(is_negative, delta, bunny) without return types