code: def lookup_token(self, token=None, accessor=False, wrap_ttl=None):
          
          token_param = {
              'token': token,
          }
          accessor_param = {
              'accessor': token,
          }
          if token:
              if accessor:
                  path = '/v1/auth/token/lookup-accessor'
                  return self._adapter.post(path, json=accessor_param, wrap_ttl=wrap_ttl).json()
              else:
                  path = '/v1/auth/token/lookup'
                  return self._adapter.post(path, json=token_param).json()
          else:
              path = '/v1/auth/token/lookup-self'
              return self._adapter.get(path, wrap_ttl=wrap_ttl).json()
docs: GET /auth/token/lookup/<token>
  
          GET /auth/token/lookup-accessor/<token-accessor>
  
          GET /auth/token/lookup-self
  
          :param token:
          :type token: str.
          :param accessor:
          :type accessor: str.
          :param wrap_ttl:
          :type wrap_ttl: int.
          :return:
          :rtype: