code: def _test_node_should_be_modified(ctrs, should_modify=True):
      modifier = framework_version.FrameworkVersionEnforcer()
      for ctr in ctrs:
          node = ast_call(ctr)
          if should_modify:
              assert modifier.node_should_be_modified(
                  node
              ), "{} wasn't modified.".format(ctr)
          else:
              assert not modifier.node_should_be_modified(
                  node
              ), "{} was modified.".format(ctr)
  
imports: from __future__ import absolute_import
  import pytest
  from sagemaker.cli.compatibility.v2.modifiers import framework_version
  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: _test_node_should_be_modified(ctrs, should_modify) without return types