code: def delete_dir(path: str) -> None:
      """Deletes a directory if exists."""
  
      if fileio.isdir(path):
          fileio.rmtree(path)
  
imports: import os
  import re
  import tempfile
  from typing import List, TypeVar, Iterable
  from tfx.dsl.io import fileio
  from google.protobuf import json_format
  from google.protobuf import text_format
  from google.protobuf.message import Message
label_desc: Use image node_id 5 for calling a global function with example usage: delete_dir(path) without return types