def get_role_part(rawsource):
    """Helper function to get role name from the instruction.

    Args:
        rawsource: Role raw text.

    Example:

        :role:`text` -> :role:`
    """
    return rawsource[:rawsource.find('`') + 1]