code: def _format_sync_list(self, records):
          
          results = {}
  
          for attributes in records:
              if not isinstance(attributes, dict):
                  id, attributes = attributes, {}
              else:
                  id = list(attributes.keys())[0]
                  attributes = attributes[id]
  
              results[id] = attributes
  
          return results
docs: Format the sync list so that it is keyed by ID.