code: def _generate_py(f: IO[str], keys: List[str]):
      for k in keys:
          f.write(f"{_crean_slash(k)} = '{k}'\n")
      f.write(
          f'\nALL_LABELS = [{" ,".join(map(_crean_slash, keys))}]\n'
      )
  
file_path: camphr/packages/camphr/camphr/ner_labels/utils.py
imports: import yaml
  from pathlib import Path
  from typing import IO, Dict, Iterable, List, Optional, Union
  import json
  from typing_extensions import Literal
label_desc: Use image node_id 7 for calling a global function with example usage: _generate_py(f, keys) without return types