code: def in_scope(self, exclude_scopes=None, include_scopes=None):
      
      if include_scopes is not None and not isinstance(include_scopes, Scope):
        raise ValueError('include_scopes must be a Scope instance but was {}.'.format(
          type(include_scopes)
        ))
      if exclude_scopes is not None and not isinstance(exclude_scopes, Scope):
        raise ValueError('exclude_scopes must be a Scope instance but was {}.'.format(
          type(exclude_scopes)
        ))
      if exclude_scopes and any(s in exclude_scopes for s in self):
        return False
      if include_scopes and not any(s in include_scopes for s in self):
        return False
      return True
docs: Whether this scope should be included by the given inclusion and exclusion rules.
  
      :param Scope exclude_scopes: An optional Scope containing scope names to exclude. None (the
        default value) indicates that no filtering should be done based on exclude_scopes.
      :param Scope include_scopes: An optional Scope containing scope names to include. None (the
        default value) indicates that no filtering should be done based on include_scopes.
      :return: True if none of the input scopes are in `exclude_scopes`, and either (a) no include
        scopes are provided, or (b) at least one input scope is included in the `include_scopes` list.
      :rtype: bool