code: def get_brew_version():
      """Returns `brew --version` output."""
  
      return run_and_parse_first_match(
          "brew --version", r"Homebrew (.*)"
      )
  
imports: import argparse
  import os
  import platform
  import sys
  from print_env_info import run_and_parse_first_match
  from ts_scripts.utils import check_python_version
label_desc: Use image node_id 2 for calling a global function with example usage: get_brew_version() and returns: run_and_parse_first_match