code: def set_scope(self, include=None, exclude=None):
          
          context = {}
  
          if exclude:
              context["exclude"] = [[selector] for selector in exclude]
  
          if include:
              context["include"] = [[selector] for selector in include]
  
          self.context = json.dumps(context) if context else 'document'
docs: Sets `scope` (refered to as `context` in ruleset documentation), which
          defines the elements on a page to include or exclude in the audit. If
          neither `include` nor `exclude` are passed, the entire document will
          be included.
  
          Args:
  
              include (optional): a list of css selectors for elements that
              should be included in the audit. By, default, the entire document
              is included.
              exclude (optional): a list of css selectors for elements that should not
              be included in the audit.
  
          Examples:
  
              To include all items in `#main-content` except `#some-special-elm`::
  
                  page.a11y_audit.config.set_scope(
                      exclude=["#some-special-elm"],
                      include=["#main-content"]
                  )
  
              To include all items in the document except `#some-special-elm`::
  
                  page.a11y_audit.config.set_scope(
                      exclude=["#some-special-elm"],
                  )
  
              To include only children of `#some-special-elm`::
  
                  page.a11y_audit.config.set_scope(
                      include=["#some-special-elm"],
                  )
  
          Context documentation:
  
              https://github.com/dequelabs/axe-core/blob/master/doc/API.md#a-context-parameter
  
              Note that this implementation only supports css selectors. It does
              not accept nodes as described in the above documentation resource.