def _register_assert_equal_wrapper(type_, assert_eq):
 @assert_equal.register(type_, type_)
 def assert_ndframe_equal(result, expected, path=(), msg='', **kwargs):
  try:
   assert_eq(result, expected, **filter_kwargs(assert_eq, kwargs))
  except AssertionError as e:
   raise AssertionError((_fmt_msg(msg) + '\n'.join((str(e), _fmt_path(path)))))
 return assert_ndframe_equal

def _register_assert_equal_wrapper ( type_ , assert_eq ) : @ assert_equal . register ( type_ , type_ ) def assert_ndframe_equal ( result , expected , path = ( ) , msg = '' , ** kwargs ) : try : assert_eq ( result , expected , ** filter_kwargs ( assert_eq , kwargs ) ) except AssertionError as e : raise AssertionError ( ( _fmt_msg ( msg ) + '\n' . join ( ( str ( e ) , _fmt_path ( path ) ) ) ) ) return assert_ndframe_equal
register a new check for an ndframe object .