code: def to_node(value):
      '''Expand to a literal node if a basic type otherwise just returns the node'''
  
      if isinstance(value, Node):
          return value
      elif isinstance(value, str):
          return Node('string', value=value, pseudo_type='String')
      elif isinstance(value, int):
          return Node('int', value=value, pseudo_type='Int')
      elif isinstance(value, bool):
          return Node('boolean', value=str(value).lower(), pseudo_type='Boolean')
      elif isinstance(value, float):
          return Node('float', value=value, pseudo_type='Float')
      elif value is None:
          return Node('null', pseudo_type='Void')
      else:
          1/f to_node(value):
      '''Expand to a literal node if a basic type otherwise just returns the node'''
  
      if isinstance(value, Node):
          return value
      elif isinstance(value, str):
          return Node('string', value=value, pseudo_type='String')
      elif isinstance(value, int):
          return Node('int', value=value, pseudo_type='Int')
      elif isinstance(value, bool):
          return Node('boolean', value=str(value).lower(), pseudo_type='Boolean')
      elif isinstance(value, float):
          return Node('float', value=value, pseudo_type='Float')
      elif value is None:
          return Node('null', pseudo_type='Void')
      else:
          1/0
docs: Expand to a literal node if a basic type otherwise just returns the node