def _parse_object_data(object_data):
  """Parse object data for role propagation.

  Examples:
    "Comment RU" > "Comment", {"read": True, "update": True, "delete": False}
    "Assessment" > "Assessment", {}

  Args:
    object_data: String containing object_type and permission data

  Returns:
    string for object type and dictionary for permissions data.
  """
  permission_flag_map = {
      "R": "read",
      "U": "update",
      "D": "delete",
      "M": "my_work",
  }
  permissions = {
      "read": False,
      "update": False,
      "delete": False,
      "my_work": False,
  }

  data = object_data.split()
  assert len(data) == 2
  object_type, permission_flags = data

  for flag in permission_flags:
    permissions[permission_flag_map[flag]] = True
  return object_type, permissions