def is_extension_type(value):
 if is_categorical(value):
  return True
 elif is_sparse(value):
  return True
 elif is_datetimetz(value):
  return True
 return False

def is_extension_type ( value ) : if is_categorical ( value ) : return True elif is_sparse ( value ) : return True elif is_datetimetz ( value ) : return True return False
if we are a klass that is preserved by the internals these are internal klasses that we represent .