parameters: (self, importer_node: ImporterNode, input_index=0)
return_statement: return self.get_output_port_elements_for_node(owning_node)
docstring: Returns an ell.nodes.PortElements for the corresponding ImporterNode.
docstring_summary: Returns an ell.nodes.PortElements for the corresponding ImporterNode.
docstring_tokens: Returns an ell . nodes . PortElements for the corresponding ImporterNode .
function: def get_port_elements_for_input(self, importer_node: ImporterNode, input_index=0) -> ell.nodes.PortElements:
          """
          Returns an ell.nodes.PortElements for the corresponding ImporterNode.
          """
          try:
              # First check whether this importer node has any corresponding
              # ELL nodes yet:
              # - If it does, grab the output of the last ELL node which
              #   is designated as the input to this node.
              # - If it doesn't, grab the output of the last ELL node which
              #   the Importer's input is tied to.
              owning_node = self.get_ell_node_from_importer_node_id(importer_node.id)
              if owning_node is None:
                  owning_node_id = self.output_id_to_ell_ids[importer_node.inputs[input_index]]
                  owning_node = self.ell_id_to_ell_nodes[owning_node_id]
          except BaseException:
              raise Exception("Cannot get input port elements for {}, missing ELL owning node".format(importer_node.id))
          return self.get_output_port_elements_for_node(owning_node)
function_tokens: def get_port_elements_for_input ( self , importer_node : ImporterNode , input_index = 0 ) -> ell . nodes . PortElements : try : # First check whether this importer node has any corresponding # ELL nodes yet: # - If it does, grab the output of the last ELL node which #   is designated as the input to this node. # - If it doesn't, grab the output of the last ELL node which #   the Importer's input is tied to. owning_node = self . get_ell_node_from_importer_node_id ( importer_node . id ) if owning_node is None : owning_node_id = self . output_id_to_ell_ids [ importer_node . inputs [ input_index ] ] owning_node = self . ell_id_to_ell_nodes [ owning_node_id ] except BaseException : raise Exception ( "Cannot get input port elements for {}, missing ELL owning node" . format ( importer_node . id ) ) return self . get_output_port_elements_for_node ( owning_node )