code: def get_private_key_from_wif(wif: str) -> bytes:
          
          if wif is None or wif is "":
              raise Exception("none wif")
          data = base58.b58decode(wif)
          if len(data) != 38 or data[0] != 0x80 or data[33] != 0x01:
              raise Exception("wif wrong")
          checksum = Digest.hash256(data[0:34])
          for i in range(4):
              if data[len(data) - 4 + i] != checksum[i]:
                  raise Exception("wif wrong")
          return data[1:33]
docs: This interface is used to decode a WIF encode ECDSA private key.
  
          :param wif: a WIF encode private key.
          :return: a ECDSA private key in the form of bytes.