code: def _get_librato(ret=None):
      '''
      Return a Librato connection object.
      '''
      _options = _get_options(ret)
  
      conn = librato.connect(
          _options.get('email'),
          _options.get('api_token'),
          sanitizer=librato.sanitize_metric_name,
          hostname=_options.get('api_url'))
      log.info("Connected to librato.")
      return conf _get_librato(ret=None):
      '''
      Return a Librato connection object.
      '''
      _options = _get_options(ret)
  
      conn = librato.connect(
          _options.get('email'),
          _options.get('api_token'),
          sanitizer=librato.sanitize_metric_name,
          hostname=_options.get('api_url'))
      log.info("Connected to librato.")
      return conn
docs: Return a Librato connection object.