You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: collection_type_participant.rb
    path of file: ./repos/hyrax/app/models/hyrax
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
module Hyrax
  class CollectionTypeParticipant < ActiveRecord::Base
    self.table_name = 'collection_type_participants'
    belongs_to :hyrax_collection_type, class_name: 'Collectio
    
    def label
      return agent_id unless agent_type == GROUP_TYPE
      case agent_id
      when ::Ability.registered_group_name
        I18n.t('hyrax.admin.admin_sets.form_participant_table.registered_users')
      when ::Ability.admin_group_name
        I18n.t('hyrax.admin.admin_sets.form_participant_table.admin_users')
      else
        agent_id
      end