parameters: (_, varname, directory='')
docstring: Writes a header file for the table values.
docstring_summary: Writes a header file for the table values.
docstring_tokens: Writes a header file for the table values .
function: def to_h(_, varname, directory=''):
    """Writes a header file for the table values."""
    tf_prepend = 'TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_'
    xstr = '#ifndef {}{}_H_\n'.format(tf_prepend, varname.upper())
    xstr += '#define {}{}_H_\n\n'.format(tf_prepend, varname.upper())
    xstr += '#include <cstdint>\n\n'
    xstr += 'extern const int g_{}_size;\n'.format(varname)
    xstr += 'extern const int16_t g_{}[];\n\n'.format(varname)
    xstr += '#endif  // {}{}_H_'.format(tf_prepend, varname.upper())
  
    with open(directory + varname + '.h', 'w') as f:
      f.write(xstr)
function_tokens: def to_h ( _ , varname , directory = '' ) : tf_prepend = 'TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_' xstr = '#ifndef {}{}_H_\n' . format ( tf_prepend , varname . upper ( ) ) xstr += '#define {}{}_H_\n\n' . format ( tf_prepend , varname . upper ( ) ) xstr += '#include <cstdint>\n\n' xstr += 'extern const int g_{}_size;\n' . format ( varname ) xstr += 'extern const int16_t g_{}[];\n\n' . format ( varname ) xstr += '#endif  // {}{}_H_' . format ( tf_prepend , varname . upper ( ) ) with open ( directory + varname + '.h' , 'w' ) as f : f . write ( xstr )