code: def _write_names_to_file(names_filepath: epath.Path, names) -> None:
      names_filepath.write_text("\n".join(names) + "\n")
  
imports: from typing import Optional, Union
  from etils import epath
  import numpy
  from tensorflow_datasets.core.features import feature
  from tensorflow_datasets.core.features import tensor_feature
  from tensorflow_datasets.core.proto import feature_pb2
  from tensorflow_datasets.core.utils import type_utils
label_desc: Use image node_id 2 for calling a global function with example usage: _write_names_to_file(names_filepath, names) without return types