def are_compatible_imgs(one_img, another_img):
try:<EOL><INDENT>check_img_compatibility(one_img, another_img)<EOL><DEDENT>except :<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>
Return true if one_img and another_img have the same shape.
    False otherwise.
    If both are nibabel.Nifti1Image will also check for affine matrices.

    Parameters
    ----------
    one_img: nibabel.Nifti1Image or np.ndarray

    another_img: nibabel.Nifti1Image  or np.ndarray

    Returns
    -------
    bool