code: def p2wsh_input_and_witness(outpoint, stack, witness_script, sequence=None):
      '''
      Outpoint, str, str, int -> (TxIn, InputWitness)
      Create a signed witness TxIn and InputWitness from a p2wsh prevout
      '''
      if sequence is None:
          sequence = guess_sequence(witness_script)
      stack = list(map(
          lambda x: b'' if x == 'NONE' else bytes.fromhex(x), stack.split()))
      stack.append(script_ser.serialize(witness_script))
      return tb.make_witness_input_and_witness(outpoint, sequence, stackf p2wsh_input_and_witness(outpoint, stack, witness_script, sequence=None):
      '''
      Outpoint, str, str, int -> (TxIn, InputWitness)
      Create a signed witness TxIn and InputWitness from a p2wsh prevout
      '''
      if sequence is None:
          sequence = guess_sequence(witness_script)
      stack = list(map(
          lambda x: b'' if x == 'NONE' else bytes.fromhex(x), stack.split()))
      stack.append(script_ser.serialize(witness_script))
      return tb.make_witness_input_and_witness(outpoint, sequence, stack)
docs: Outpoint, str, str, int -> (TxIn, InputWitness)
      Create a signed witness TxIn and InputWitness from a p2wsh prevout