code: def parse_model_base_path(model_path: str) -> str:
      """Parse model_base_path from the TFS-flavored model path.
  
      Args:
        model_path: A TFS-flavored model path.
  
      Raises:
        ValueError: If model path is invalid (not TFS-flavored).
  
      Returns:
        model_base_path as defined from the module docstring.
      """
      return parse_model_path(model_path)[0]
  
imports: import os
  from typing import Optional, Tuple
label_desc: Use image node_id 3 for calling a global function with example usage: parse_model_base_path(model_path) and returns: parse_model_path