code: def __new__(cls, *args):
      bargs = []
      for a in args:
          if a == cls.op_x_notx:
              return a
          elif a == (not cls.op_x_notx):
              continue  # skip this argument
          bargs.append(a)
  
      args = sorted(set(cls.flatten(bargs)), key=hash)
  
      for a in args:
          if Not(a) in args:
              return cls.op_x_notx
  
      if len(args) == 1:
          return args.pop()
      elif len(args) == 0:
          return not cls.op_x_notx
  
      return Logic.__new__(cls, *args)
  
imports: from __future__ import annotations
  from typing import Optional
label_desc: Use image node_id 1 for calling the AndOr_Base obj's underlying member method code with example usage: obj.__new__(cls) and returns: Logic, args, a, cls, unknown