code: def dump_xy_to_fasttext_format(X, y, filepath):
      """Dumps the given X and y matrices  to a fasttext-compatible csv file.
  
      Parameters
      ----------
      X : array-like, shape = [n_samples]
          The input samples. An array of strings.
      y : array-like, shape = [n_samples]
          The target values. An array of int.
      filepath : str
          The fully qualified path to the file to dump.
      """
      with open(filepath, "w+", encoding="utf-8") as wfile:
          for text, label in zip(X, y):
              wfile.write("__label__{} {}\n".format(label, text))
  
file_path: skift/skift/util.py
imports: import os
  from random import randint
  from fasttext import load_model
label_desc: Use image node_id 3 for calling a global function with example usage: dump_xy_to_fasttext_format(X, y, filepath) without return types