def is_cdap_entity_role(role):
  """
  CDAP create roles for entities by default. These roles are in the format of '.namespace', '.program' etc.
  :param role: The role to judge
  :return: bool: if role is a cdap entity role
  """
  return role['name'].startswith(('.artifact', '.application', '.program', '.dataset', 'stream', '.namespace'))