parameters: (input_value: NodeInput)
return_statement: return make_constant_node(input_value)
docstring: Return input values as nodes. Scalars will be converted to Constant nodes.
docstring_summary: Return input values as nodes. Scalars will be converted to Constant nodes.
docstring_tokens: Return input values as nodes . Scalars will be converted to Constant nodes .
function: def as_node(input_value: NodeInput) -> Node:
      """Return input values as nodes. Scalars will be converted to Constant nodes."""
      if issubclass(type(input_value), Node):
          return input_value
      if issubclass(type(input_value), Output):
          return input_value
      return make_constant_node(input_value)
function_tokens: def as_node ( input_value : NodeInput ) -> Node : if issubclass ( type ( input_value ) , Node ) : return input_value if issubclass ( type ( input_value ) , Output ) : return input_value return make_constant_node ( input_value )