class_docstr: Base Handler for CLI.
  
  Attributes:
    flags_dict: A dictionary with flags provided in a command.
code: def __init__(self, flags_dict: Dict[str, Any]):
      self.flags_dict = flags_dict
      self._handler_home_dir = self._get_handler_home()
  
imports: import abc
  from importlib import machinery
  from importlib import util
  import json
  import os
  import subprocess
  import sys
  from typing import Any, Collection, Dict, List, Optional
  import click
  from tfx.dsl.components.base import base_driver
  from tfx.dsl.io import fileio
  from tfx.tools.cli import labels
  from tfx.tools.cli.handler import dag_runner_patcher
  from tfx.utils import io_utils
label_desc: Use image node_id 1 to create a new BaseHandler object from inherited base classes: abc with example: obj = BaseHandler(flags_dict)