def METHOD_NAME(nodes):
    """Create an item for the view based the container and content of it
    It fetches the look document based on the asset ID found in the content.
    The item will contain all important information for the tool to work.
    If there is an asset ID which is not registered in the project's collection
    it will log a warning message.
    Args:
        nodes (list): list of maya nodes
    Returns:
        list of dicts
    """
    asset_view_items = []
    id_hashes = create_asset_id_hash(nodes)
    if not id_hashes:
        log.warning("No id hashes")
        return asset_view_items
    project_name = get_current_project_name()
    asset_ids = set(id_hashes.keys())
    asset_docs = get_assets(project_name, asset_ids, fields=["name"])
    asset_docs_by_id = {
        str(asset_doc["_id"]): asset_doc
        for asset_doc in asset_docs
    }
    for asset_id, id_nodes in id_hashes.items():
        asset_doc = asset_docs_by_id.get(asset_id)
        # Skip if asset id is not found
        if not asset_doc:
            log.warning(
                "Id found on {num} nodes for which no asset is found database,"
                " skipping '{asset_id}'".format(
                    num=len(nodes),
                    asset_id=asset_id
                )
            )
            continue
        # Collect available look subsets for this asset
        looks = lib.list_looks(project_name, asset_doc["_id"])
        # Collect namespaces the asset is found in
        namespaces = set()
        for node in id_nodes:
            namespace = get_namespace_from_node(node)
            namespaces.add(namespace)
        asset_view_items.append({
            "label": asset_doc["name"],
            "asset": asset_doc,
            "looks": looks,
            "namespaces": namespaces
        })
    return asset_view_items