code: def rest(self, token, endpoint=None, timeout=None):
          
          from . import rest
          return rest.SignalFxRestClient(
              token=token,
              endpoint=endpoint or self._api_endpoint,
              timeout=timeout or self._timeout)
docs: Obtain a metadata REST API client.