def METHOD_NAME(private_keyset: bytes) -> bytes:
  reader = tink.BinaryKeysetReader(private_keyset)
  keyset_handle = cleartext_keyset_handle.read(reader)
  public_keyset_handle = keyset_handle.public_keyset_handle()
  public_keyset = io.BytesIO()
  cleartext_keyset_handle.write(
      tink.BinaryKeysetWriter(public_keyset), public_keyset_handle)
  return public_keyset.getvalue()