code: def tenant_exists(self, keystone, tenant):
          
          self.log.debug('Checking if tenant exists ({})...'.format(tenant))
          return tenant in [t.name for t in keystone.tenants.list()]
docs: Return True if tenant exists.