def assert_identical(a, b):
 assert_equal(a, b)
 if (type(b) is str):
  assert_equal(type(a), type(b))
 else:
  assert_equal(np.asarray(a).dtype.type, np.asarray(b).dtype.type)

def assert_identical ( a , b ) : assert_equal ( a , b ) if ( type ( b ) is str ) : assert_equal ( type ( a ) , type ( b ) ) else : assert_equal ( np . asarray ( a ) . dtype . type , np . asarray ( b ) . dtype . type )
assert whether value and type are the same .