def is_dtype_equal(source, target):
 try:
  source = _get_dtype(source)
  target = _get_dtype(target)
  return (source == target)
 except (TypeError, AttributeError):
  return False

def is_dtype_equal ( source , target ) : try : source = _get_dtype ( source ) target = _get_dtype ( target ) return ( source == target ) except ( TypeError , AttributeError ) : return False
return a boolean if the dtypes are equal .