code: def create_file(name, prefix, tensor_name, tensor_data, output_path):
      """
      This function generates a header file containing the data from the numpy array provided.
      """
      file_path = pathlib.Path(f"{output_path}/" + name).resolve()
      # Create header file with npy_data as a C array
      raw_path = file_path.with_suffix(".c").resolve()
      with open(raw_path, "w") as header_file:
          header_file.write(
              "#include <stddef.h>\n"
              "#include <stdint.h>\n"
              f"const size_t {tensor_name}_len = {tensor_data.size};\n"
              f"{prefix} float {tensor_name}_storage[] = "
          )
          header_file.write("{")
          for i in np.ndindex(tensor_data.shape):
              header_file.write(f"{tensor_data[i]}, ")
          header_file.write("};\n\n")
  
imports: import os
  import pathlib
  import sys
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: create_file(name, prefix, tensor_name, tensor_data, output_path) without return types