code: def visit_named_resource(self, _, children):
          
  
          name, resource = children
          if name:
              resource.name = name
          return resource
docs: A resource in the query with its optional name.
  
          Arguments
          ---------
          _ (node) : parsimonious.nodes.Node.
          children : list
              - 0: for ``OPTIONAL_RESOURCE_NAME``: str, the name of the resource, or ``None`` if not
                   set in the query.
              - 1: for ``RESOURCE``: an instance of a subclass of ``.resources.Resource``.
  
          Returns
          -------
          .resources.Resource
              An instance of a subclass of ``.resources.Resource``, with its ``name`` field set
              to the name in the query if set.
  
          Example
          -------
  
          >>> DataQLParser(r'bar', default_rule='NAMED_RESOURCE').data
          <Field[bar] />
          >>> DataQLParser(r'foo:bar', default_rule='NAMED_RESOURCE').data
          <Field[foo] .bar />
          >>> DataQLParser(r'foo : bar', default_rule='NAMED_RESOURCE').data
          <Field[foo] .bar />