def convert_assets_items_to_dict(assets, attributes=''):
    """
  Convert an assets list to proper dict
  """
    b = []
    if not assets:
        return b
    for a in assets:
        if a:
            b.append({'url': a, 'attributes': attributes} if not isinstance
                (a, (dict,)) else a)
    return b
