code: def write_file(out_path):
      with open(out_path, "w") as f:
          name_map = json.dumps(dtypes._TYPE_TO_STRING)
          f.write(
              "export const DTYPE_ENUM_TO_NAME: "
              "{[enumValue: string]: string} = %s;\n" % name_map
          )
  
imports: import json
  import sys
  from tensorboard.compat.tensorflow_stub import dtypes
label_desc: Use image node_id 1 for calling a global function with example usage: write_file(out_path) without return types