def ensure_client(self, **kwargs):
        if self.client:
            return
        else:
            self.client = get_api_client(**kwargs)
Ensure that object has a client object
dataset/ETHPy150Open dropbox/pynsot/pynsot/models.py/Resource.ensure_client