class_docstr: Calculates similarity between two 3D volumes. Both volumes have to be in
  the same coordinate system, same space within that coordinate system and
  with the same voxel dimensions.
  
  .. deprecated:: 0.10.0
     Use :py:class:`nipype.algorithms.metrics.Similarity` instead.
  
  Example
  -------
  >>> from nipype.interfaces.nipy.utils import Similarity
  >>> similarity = Similarity()
  >>> similarity.inputs.volume1 = 'rc1s1.nii'
  >>> similarity.inputs.volume2 = 'rc1s2.nii'
  >>> similarity.inputs.mask1 = 'mask.nii'
  >>> similarity.inputs.mask2 = 'mask.nii'
  >>> similarity.inputs.metric = 'cr'
  >>> res = similarity.run() # doctest: +SKIP
code: def __init__(self, **inputs):
      warnings.warn(
          (
              "This interface is deprecated since 0.10.0."
              " Please use nipype.algorithms.metrics.Similarity"
          ),
          DeprecationWarning,
      )
      super().__init__(**inputs)
  
file_path: nipype/nipype/interfaces/nipy/utils.py
imports: import warnings
  import numpy
  import nibabel
  from .base import NipyBaseInterface, have_nipy
  from ..base import TraitedSpec, traits, BaseInterfaceInputSpec, File, isdefined
label_desc: Use image node_id 1 to create a new Similarity object from inherited base classes: NipyBaseInterface with example: obj = Similarity()