def delete_photo(self, contact_entry_or_url, auth_token=None, **kwargs):
    uri = None
    ifmatch_header = None
    if isinstance(contact_entry_or_url, gdata.contacts.data.ContactEntry):
      photo_link = contact_entry_or_url.GetPhotoLink()
      if photo_link.etag:
        uri = photo_link.href
        ifmatch_header = atom.client.CustomHeaders(
            **{'if-match': photo_link.etag})
      else:
        # No etag means no photo has been assigned to this contact.
        return
    else:
      uri = contact_entry_or_url
    if uri:
      self.Delete(entry_or_uri=uri, auth_token=auth_token,
                  ifmatch_header=ifmatch_header, **kwargs)
Coerces value to a native type.
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/contacts/client.py/ContactsClient.delete_photo--crossover with--dataset/ETHPy150Open jek/flatland/flatland/schema/scalars.py/Temporal.adapt