parameters: (node_factory_function: Callable)
return_statement: return wrapper
docstring: Convert the first input value to a Constant Node if a numeric value is detected.
docstring_summary: Convert the first input value to a Constant Node if a numeric value is detected.
docstring_tokens: Convert the first input value to a Constant Node if a numeric value is detected .
function: def unary_op(node_factory_function: Callable) -> Callable:
      """Convert the first input value to a Constant Node if a numeric value is detected."""
  
      @wraps(node_factory_function)
      def wrapper(input_value: NodeInput, *args: Any, **kwargs: Any) -> Node:
          input_node = as_node(input_value)
          node = node_factory_function(input_node, *args, **kwargs)
          node = _set_node_friendly_name(node, **kwargs)
          return node
  
      return wrapper
function_tokens: def unary_op ( node_factory_function : Callable ) -> Callable : @ wraps ( node_factory_function ) def wrapper ( input_value : NodeInput , * args : Any , * * kwargs : Any ) -> Node : input_node = as_node ( input_value ) node = node_factory_function ( input_node , * args , * * kwargs ) node = _set_node_friendly_name ( node , * * kwargs ) return node return wrapper