code: def _rename_namespace(node, name):
      """Rename namespace ``session`` to ``inputs``."""
      if (
          isinstance(node.func.value, ast.Attribute)
          and node.func.value.attr == name
      ):
          node.func.value.attr = "inputs"
      elif (
          isinstance(node.func.value, ast.Name)
          and node.func.value.id == name
      ):
          node.func.value.id = "inputs"
  
imports: from __future__ import absolute_import
  import ast
  from sagemaker.cli.compatibility.v2.modifiers import matching
  from sagemaker.cli.compatibility.v2.modifiers.modifier import Modifier
label_desc: Use image node_id 1 for calling a global function with example usage: _rename_namespace(node, name) without return types