'Returns a new RoleMetadata object based on the datastructure passed in.'

@staticmethod
def load(data, owner, variable_manager=None, loader=None):

    if (not isinstance(data, dict)):
        raise AnsibleParserError(("the    'meta/main.yml'    for    role    %s    is    not    a    dictionary" % owner.get_name()))
    m = RoleMetadata(owner=owner).load_data(data, variable_manager=variable_manager, loader=loader)
    return m
