code: def _hyperparameters_from_node(node):
      for kw in node.keywords:
          if kw.arg == "hyperparameters":
              keys = [k.s for k in kw.value.keys]
              values = [
                  getattr(v, v._fields[0]) for v in kw.value.values
              ]
              return dict(zip(keys, values))
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_tf_legacy_mode.py
imports: from __future__ import absolute_import
  import pasta
  from mock import MagicMock, patch
  from sagemaker.cli.compatibility.v2.modifiers import tf_legacy_mode
  from tests.unit.sagemaker.cli.compatibility.v2.modifiers.ast_converter import ast_call
label_desc: Use image node_id 9 for calling a global function with example usage: _hyperparameters_from_node(node) and returns: dict