def getSchemaElements(schemaElementType, unique_name, aslist=False,
    more_restrictions=None, more_properties=None, generate_instance=True):
    """Returns a list of schema elements or a single entry.

        schemaElementType: refers to a key in `schemaElementTypes`
        unique_name: return a specific element
        aslist: return result as list, if false the first in the resultset will be returned
        more_restrictions: dictionary containing more constraints for the request, i.e.
                           {"HIERARCHY_UNIQUE_NAME": "[Sales by Country]"}
        more_properties: dictionary containing more properties for the request,
                           {"ProviderInfo": "YourProvider"}
        generate_instance: If false the resulting entries will be dictionaries, otherwise
                           of the type mentioned in the "ELEMENT_CLASS" entry
                           from the schemaELementType.
                           """
