code: def p2sh_input(outpoint, stack_script, redeem_script, sequence=None):
      '''
      OutPoint, str, str, int -> TxIn
      Create a signed legacy TxIn from a p2pkh prevout
      '''
      if sequence is None:
          sequence = guess_sequence(redeem_script)
  
      stack_script = script_ser.serialize(stack_script)
      redeem_script = script_ser.hex_serialize(redeem_script)
      redeem_script = script_ser.serialize(redeem_script)
  
      return tb.make_legacy_input(
          outpoint=outpoint,
          stack_script=stack_script,
          redeem_script=redeem_script,
          sequence=sequencef p2sh_input(outpoint, stack_script, redeem_script, sequence=None):
      '''
      OutPoint, str, str, int -> TxIn
      Create a signed legacy TxIn from a p2pkh prevout
      '''
      if sequence is None:
          sequence = guess_sequence(redeem_script)
  
      stack_script = script_ser.serialize(stack_script)
      redeem_script = script_ser.hex_serialize(redeem_script)
      redeem_script = script_ser.serialize(redeem_script)
  
      return tb.make_legacy_input(
          outpoint=outpoint,
          stack_script=stack_script,
          redeem_script=redeem_script,
          sequence=sequence)
docs: OutPoint, str, str, int -> TxIn
      Create a signed legacy TxIn from a p2pkh prevout