code: def compareNamedTuple(tuple1: NamedTuple, tuple2: NamedTuple, *fields):
      
      tuple1 = tuple1._asdict()
      tuple2 = tuple2._asdict()
      comp = []
      for field in fields:
          comp.append(tuple1[field] == tuple2[field])
      return all(comp)
docs: Compare provided fields of 2 named tuples for equality and returns true
      :param tuple1:
      :param tuple2:
      :param fields:
      :return: