import operator


def get_isa_extensions(instruction_form):
    """Returns a hashable immutable set with names of ISA extensions required for this instructions form"""
    return frozenset(map(operator.attrgetter("name"), instruction_form.isa_extensions))