code: def make_sh_output_script(script_string, witness=False):
      '''
      str -> bytearray
      '''
      if witness and not riemann.network.SEGWIT:
          raise ValueError(
              'Network {} does not support witness scripts.'
              .format(riemann.get_current_network_name()))
  
      script_bytes = serialization.serialize(script_string)
      return make_sh_script_pubkey(script_bytes=script_bytes, witness=witnessf make_sh_output_script(script_string, witness=False):
      '''
      str -> bytearray
      '''
      if witness and not riemann.network.SEGWIT:
          raise ValueError(
              'Network {} does not support witness scripts.'
              .format(riemann.get_current_network_name()))
  
      script_bytes = serialization.serialize(script_string)
      return make_sh_script_pubkey(script_bytes=script_bytes, witness=witness)
docs: str -> bytearray