parameters: (self, model: ell.model.Model)
return_statement: return group_id_mapping
docstring: Returns the mapping of ImporterNode id to the group of ELL nodes that
          got converted from it.
docstring_summary: Returns the mapping of ImporterNode id to the group of ELL nodes that
          got converted from it.
docstring_tokens: Returns the mapping of ImporterNode id to the group of ELL nodes that got converted from it .
function: def get_node_group_mapping(self, model: ell.model.Model) -> typing.Mapping[str, typing.Sequence[ell.nodes.Node]]:
          """
          Returns the mapping of ImporterNode id to the group of ELL nodes that
          got converted from it.
          """
          group_id_mapping = {}
          nodes = model.GetNodes()
  
          # Collect the group id to ell node mapping
          while nodes.IsValid():
              node = nodes.Get()
              group_id = node.GetMetadataValue("GroupId")
              # Ensure that GroupId is set to something. If it isn't, this indicates
              # an ELL node that was inserted independently of the import, e.g.
              # a SinkNode
              if group_id:
                  if group_id in group_id_mapping:
                      group_id_mapping[group_id].append(node)
                  else:
                      group_id_mapping[group_id] = [node]
              nodes.Next()
  
          return group_id_mapping
function_tokens: def get_node_group_mapping ( self , model : ell . model . Model ) -> typing . Mapping [ str , typing . Sequence [ ell . nodes . Node ] ] : group_id_mapping = { } nodes = model . GetNodes ( ) # Collect the group id to ell node mapping while nodes . IsValid ( ) : node = nodes . Get ( ) group_id = node . GetMetadataValue ( "GroupId" ) # Ensure that GroupId is set to something. If it isn't, this indicates # an ELL node that was inserted independently of the import, e.g. # a SinkNode if group_id : if group_id in group_id_mapping : group_id_mapping [ group_id ] . append ( node ) else : group_id_mapping [ group_id ] = [ node ] nodes . Next ( ) return group_id_mapping