code: def get_list_retention_policies(self, database=None):
          
          if not (database or self._database):
              raise InfluxDBClientError(
                  "get_list_retention_policies() requires a database as a "
                  "parameter or the client to be using a database")
  
          rsp = self.query(
              "SHOW RETENTION POLICIES ON {0}".format(
                  quote_ident(database or self._database))
          )
          return list(rsp.get_points())
docs: Get the list of retention policies for a database.
  
          :param database: the name of the database, defaults to the client's
              current database
          :type database: str
          :returns: all retention policies for the database
          :rtype: list of dictionaries
  
          :Example:
  
          ::
  
              >> ret_policies = client.get_list_retention_policies('my_db')
              >> ret_policies
              [{u'default': True,
                u'duration': u'0',
                u'name': u'default',
                u'replicaN': 1}]