code: def ping(self):
          
          response = self.request(
              url="ping",
              method='GET',
              expected_response_code=204
          )
  
          return response.headers['X-Influxdb-Version']
docs: Check connectivity to InfluxDB.
  
          :returns: The version of the InfluxDB the client is connected to