code: def strip_arg_typehint(s: str) -> str:
      """Strip a type hint from argument definition."""
      return s.split(":")[0].strip()
  
imports: from __future__ import annotations
  import functools
  import inspect
  import operator
  import os
  import posixpath
  import re
  import sys
  from inspect import Parameter
  from os import path
  from types import ModuleType
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  from docutils.parsers.rst import directives
  from docutils.parsers.rst.states import RSTStateMachine, Struct, state_classes
  from docutils.statemachine import StringList
  import sphinx
  from sphinx import addnodes
  from sphinx.config import Config
  from sphinx.environment import BuildEnvironment
  from sphinx.ext.autodoc import INSTANCEATTR, Documenter
  from sphinx.ext.autodoc.directive import DocumenterBridge, Options
  from sphinx.ext.autodoc.importer import import_module
  from sphinx.ext.autodoc.mock import mock
  from sphinx.locale import __
  from sphinx.project import Project
  from sphinx.pycode import ModuleAnalyzer, PycodeError
  from sphinx.registry import SphinxComponentRegistry
  from sphinx.util import logging, rst
  from sphinx.util.docutils import NullReporter, SphinxDirective, SphinxRole, new_document, switch_source_input
  from sphinx.util.inspect import getmro, signature_from_str
  from sphinx.util.matching import Matcher
label_desc: Use image node_id 5 for calling a global function with example usage: strip_arg_typehint(s) and returns: s