code: def _is_stcommand(tree, command_name):
      """Checks whether the AST in tree is a call for command_name."""
      root_node = tree.body[0].value
  
      if not type(root_node) is ast.Call:
          return False
  
      return (
          # st call called without module. E.g. "help()"
          getattr(root_node.func, "id", None) == command_name
          or
          # st call called with module. E.g. "foo.help()" (where usually "foo" is "st")
          getattr(root_node.func, "attr", None) == command_name
      )
  
imports: import ast
  import contextlib
  import inspect
  import re
  import types
  from typing import TYPE_CHECKING, Any, cast
  from typing_extensions import Final
  import streamlit
  from streamlit.logger import get_logger
  from streamlit.proto.DocString_pb2 import DocString
  from streamlit.proto.DocString_pb2 import Member
  from streamlit.runtime.metrics_util import gather_metrics
  from streamlit.runtime.scriptrunner.script_runner import __file__
  from streamlit.runtime.secrets import Secrets
  from streamlit.string_util import is_mem_address_str
label_desc: Use image node_id 10 for calling a global function with example usage: _is_stcommand(tree, command_name) and returns: unknown, False