code: def _version(module_name: str, attr: str) -> str | None:
      module = import_optional(module_name)
      return getattr(module, attr) if module else None
  
file_path: bokeh/src/bokeh/command/subcommands/info.py
imports: from __future__ import annotations
  import logging
  import platform
  import sys
  from argparse import Namespace
  from bokeh import __version__
  from bokeh.settings import settings
  from bokeh.util.compiler import nodejs_version, npmjs_version
  from bokeh.util.dependencies import import_optional
  from ..subcommand import Argument, Subcommand
label_desc: Use image node_id 2 for calling a global function with example usage: _version(module_name, attr) and returns: unknown