code: def _is_path_module(module: str, name: str, _base_dir: str) -> bool:
      """Figure out if base.sub is a python module or not."""
      # Special handling for _raylet, which is a C++ lib.
      if module == "ray._raylet":
          return False
  
      bps = ["python"] + module.split(".")
      path = os.path.join(_base_dir, os.path.join(*bps), name + ".py")
      if os.path.isfile(path):
          return True  # file module
      return False
  
imports: import argparse
  import ast
  import os
  import re
  import subprocess
  import sys
  from typing import Dict, List, Tuple
label_desc: Use image node_id 5 for calling a global function with example usage: _is_path_module(module, name, _base_dir) and returns: False, False, True