def METHOD_NAME(self):
    """Implement the BIP324 test vectors for ellswift encoding (read from xswiftec_inv_test_vectors.csv)."""
    vectors_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'xswiftec_inv_test_vectors.csv')
    with open(vectors_file, newline='', encoding='utf8') as csvfile:
        reader = csv.DictReader(csvfile)
        for row in reader:
            u = FE.from_bytes(bytes.fromhex(row['u']))
            x = FE.from_bytes(bytes.fromhex(row['x']))
            for case in range(8):
                ret = xswiftec_inv(x, u, case)
                if ret is None:
                    self.assertEqual(row[f"case{case}_t"], "")
                else:
                    self.assertEqual(row[f"case{case}_t"], ret.to_bytes().hex())
                    self.assertEqual(xswiftec(u, ret), x)