<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_schema_type_name(node, context):
 """Return the GraphQL type name of a node."""

    query_path = node.query_path
    if query_path not in context.query_path_to_location_info:
        raise AssertionError(
            u'Unable to find type name for query path {} with context {}.'.format(
                query_path, context))
    location_info = context.query_path_to_location_info[query_path]
    return location_info.type.name