def _is_done_or_end_state(obj):
  """Check Assessment status.

  Status should be 'Completed and verified', 'Verified',
  'In Review' or 'Rework Needed'.

  Args:
    obj: db.Model instance.

  Returns:
     Boolean: indicated that obj in 'Completed and verified', 'Verified',
    'In Review' or 'Rework Needed' status.
  """
  in_done_state = obj.status in {obj.DONE_STATE, obj.REWORK_NEEDED}
  in_end_state = obj.status in obj.END_STATES and obj.verified
  return in_done_state or in_end_state