code: def _sanitize_pipeline_name(name: str) -> str:
      """Escape special characters to make a valid directory name."""
      for escape_char in _PIPELINE_NAME_ESCAPE_CHAR:
          name = name.replace(escape_char, "\\" + escape_char)
      return name
  
file_path: tfx/tfx/tools/cli/handler/template_handler.py
imports: import collections
  import os
  import re
  from typing import Dict, Any, List, Pattern, Set
  import urllib.request
  import click
  from tfx.dsl.io import fileio
  from tfx.tools.cli import labels
label_desc: Use image node_id 6 for calling a global function with example usage: _sanitize_pipeline_name(name) and returns: name