docstr: Returns an error message if the two supplied arrays differ, otherwise false.
docstr_tok: ["Returns","an","error","message","if","the","two","supplied","arrays","differ",",","otherwise","false","."]
code: def __diff(self, arr1, arr2):
      """
      Returns an error message if the two supplied arrays differ, otherwise false.
      """
      if not arr1.ndim == arr2.ndim:
          return "ndim differs ({} to {})".format(arr1.ndim, arr2.ndim)
      elif not self.__is_lossless(arr1.dtype.type, arr2.dtype.type):
          return "loss of data due to conversion from {} to {}".format(
              arr1.dtype.type, arr2.dtype.type
          )
      elif not arr1.shape == arr2.shape:
          return "shapes differs ({} to {}).".format(
              arr1.shape, arr2.shape
          )
      elif not (arr1 == arr2).all():
          return "contents differs"
      else:
          return False
  
file_path: medpy/tests/io_/loadsave.py
imports: import unittest
  import tempfile
  import os
  import scipy
  from medpy.io import load, save
  from medpy.core.logger import Logger
label_desc: Use image node_id 2 for calling the TestIOFacilities obj's underlying member method code with example usage: obj.__diff(arr1, arr2) and returns: str, str, str, str, False