class_docstr: Ensures that ``framework_version`` is defined when instantiating a framework estimator.
class_docstr_tok: ["Ensures","that","``","framework_version","``","is","defined","when","instantiating","a","framework","estimator","."]
docstr: Checks if the ast.Call node instantiates a framework estimator or model.
  
  It doesn't specify the ``framework_version`` and ``py_version`` parameter,
  as appropriate.
  
  This looks for the following formats:
  
  - ``TensorFlow``
  - ``sagemaker.tensorflow.TensorFlow``
  
  where "TensorFlow" can be Chainer, MXNet, PyTorch, SKLearn, or TensorFlow.
  
  Args:
      node (ast.Call): a node that represents a function call. For more,
          see https://docs.python.org/3/library/ast.html#abstract-grammar.
  
  Returns:
      bool: If the ``ast.Call`` is instantiating a framework class that
          should specify ``framework_version``, but doesn't.
docstr_tok: ["Checks","if","the","ast.Call","node","instantiates","a","framework","estimator","or","model",".","It","does","n't","specify","the","``","framework_version","``","and","``","py_version","``","parameter",",","as","appropriate",".","This","looks","for","the","following","formats",":","-","``","TensorFlow","``","-","``","sagemaker.tensorflow.TensorFlow","``","where","``","TensorFlow","''","can","be","Chainer",",","MXNet",",","PyTorch",",","SKLearn",",","or","TensorFlow",".","Args",":","node","(","ast.Call",")",":","a","node","that","represents","a","function","call",".","For","more",",","see","https",":","\/\/docs.python.org\/3\/library\/ast.html","#","abstract-grammar",".","Returns",":","bool",":","If","the","``","ast.Call","``","is","instantiating","a","framework","class","that","should","specify","``","framework_version","``",",","but","does","n't","."]
code: def node_should_be_modified(self, node):
      """Checks if the ast.Call node instantiates a framework estimator or model.
  
      It doesn't specify the ``framework_version`` and ``py_version`` parameter,
      as appropriate.
  
      This looks for the following formats:
  
      - ``TensorFlow``
      - ``sagemaker.tensorflow.TensorFlow``
  
      where "TensorFlow" can be Chainer, MXNet, PyTorch, SKLearn, or TensorFlow.
  
      Args:
          node (ast.Call): a node that represents a function call. For more,
              see https://docs.python.org/3/library/ast.html#abstract-grammar.
  
      Returns:
          bool: If the ``ast.Call`` is instantiating a framework class that
              should specify ``framework_version``, but doesn't.
      """
      if matching.matches_any(node, ESTIMATORS) or matching.matches_any(
          node, MODELS
      ):
          return _version_args_needed(node)
  
      return False
  
file_path: sagemaker-python-sdk/src/sagemaker/cli/compatibility/v2/modifiers/framework_version.py
imports: from __future__ import absolute_import
  import ast
  from packaging.version import InvalidVersion, Version
  from sagemaker.cli.compatibility.v2.modifiers import matching, parsing
  from sagemaker.cli.compatibility.v2.modifiers.modifier import Modifier
label_desc: Use image node_id 1 for calling the FrameworkVersionEnforcer obj's underlying member method code with example usage: obj.node_should_be_modified(node) and returns: False, _version_args_needed