code: def can(ability, add_headers=None):
      
      client = ClientMixin(api_key=None)
      try:
          client.request('GET', endpoint='abilities/%s' % ability,
                         add_headers=add_headers)
          return True
      except Exception:
          pass
      return False
docs: Test whether an ability is allowed.