code: def clean_logos(self, logos):
          
          if not len(logos):
              return logos  # Allow nil hash
          if not isinstance(logos, list):
              raise AuthyFormatException(
                  'Invalid logos list. Only res and url required')
  
          temp_array = {}
          clean_logos = []
  
          for logo in logos:
  
              if not isinstance(logo, dict):
                  raise AuthyFormatException('Invalid logo type')
  
              for l in logo:
                  # We ignore any additional parameter on the logos, and truncate
                  # string size to the maximum allowed.
                  if l == 'res':
                      temp_array['res'] = logo[l][:MAX_STRING_SIZE]
                  elif l == 'url':
                      temp_array['url'] = logo[l][:MAX_STRING_SIZE]
                  else:
                      raise AuthyFormatException(
                          'Invalid logos list. Only res and url required')
  
              clean_logos.append(temp_array)
              temp_array = {}
  
          return clean_logos
docs: Validate logos input.
          :param list logos:
          :return list logos: