code: def get_attributes(aspect, id):
      
      attributes = {}
      for entry in aspect:
          if entry['po'] == id:
              attributes[entry['n']] = entry['v']
      return attributes
docs: Return the attributes pointing to a given ID in a given aspect.