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: discussions_list_shared_examples.rb
    path of file: ./repos/gitlabhq/spec/support/shared_examples/services/issuable
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

RSpec.shared_examples 'listing issuable discussions' do |user_role, internal_discussion_count, total_discussions_count|
  befo
    
def create_notes(issuable, note_body)
  assoc_name = issuable.to_ability_name

  create(:note, system: true, project: issuable.project, noteable: issuable)

  first_discussion = create(:discussion_note_on_issue, noteable: issuable, project: issuable.project, note: note_body)
  create(:note,
    discussion_id: first_discussion.discussion_id, noteable: issuable,
    project: issuable.project, note: "reply on #{note_body}")

  now = Time.current
  create(
    :resource_label_event,
    user: current_user, "#{assoc_name}": issuable, label: label, action: 'add', created_at: now
  )
  create(
    :resource_label_event,
    user: current_user, "#{assoc_name}": issuable, label: label_2, action: 'add', created_at: now
  )
  create(:resource_label_event, user: current_user, "#{assoc_name}": issuable, label: label, action: 'remove')

  unless issuable.is_a?(Epic)
    create(:resource_milestone_event, "#{assoc_name}": issuable, milestone: milestone, action: 'add')
    create(:resource_milestone_event, "#{assoc_name}": issuable, milestone: milestone, action: 'remove')
  end