code: def list_template() -> List[str]:
      """List available templates by inspecting template source directory.
  
      Returns:
        List of template names which is same as directory name.
      """
      templates_dir = _templates_src_dir()
      names = []
      for f in os.listdir(templates_dir):
          if f.startswith("_"):
              continue
          if not os.path.isdir(os.path.join(templates_dir, f)):
              continue
          names.append(f)
      return names
  
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 3 for calling a global function with example usage: list_template() and returns: names