code: def test_ident_distances(tmpdir):
      tmpdir.chdir()
  
      in_surf = example_data("surf01.vtk")
      dist_ident = m.ComputeMeshWarp()
      dist_ident.inputs.surface1 = in_surf
      dist_ident.inputs.surface2 = in_surf
      dist_ident.inputs.out_file = tmpdir.join("distance.npy").strpath
      res = dist_ident.run()
      assert res.outputs.distance == 0.0
  
      dist_ident.inputs.weighting = "area"
      res = dist_ident.run()
      assert res.outputs.distance == 0.0
  
file_path: nipype/nipype/algorithms/tests/test_mesh_ops.py
imports: import os
  import pytest
  import nipype.testing
  from nipype.testing import example_data
  import numpy
  from nipype.algorithms import mesh
  from ...interfaces import vtkbase
label_desc: Use image node_id 1 for calling a global function with example usage: test_ident_distances(tmpdir) without return types