code: def by_name(self, name):
          
          for d in self.list():
              if d['name'] == name:
                  return self.get(d['id'])
          raise KeyError("Could not find droplet with name %s" % name)
docs: Retrieve a droplet by name (return first if duplicated)
  
          Parameters
          ----------
          name: str
              droplet name
  
          Returns
          -------
          droplet: DropletActions