class_docstr: A class to remove the redundant 'train' prefix in estimator parameters.
docstr: Checks if the node is an estimator constructor and contains any relevant parameters.
  
  This looks for the following parameters:
  
  - ``train_instance_count``
  - ``train_instance_type``
  - ``train_max_run``
  - ``train_max_wait``
  - ``train_use_spot_instances``
  - ``train_volume_kms_key``
  - ``train_volume_size``
  
  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`` matches the relevant function calls and
          contains the parameter to be renamed.
docstr_tok: ["Checks","if","the","node","is","an","estimator","constructor","and","contains","any","relevant","parameters",".","This","looks","for","the","following","parameters",":","-","``","train_instance_count","``","-","``","train_instance_type","``","-","``","train_max_run","``","-","``","train_max_wait","``","-","``","train_use_spot_instances","``","-","``","train_volume_kms_key","``","-","``","train_volume_size","``","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","``","matches","the","relevant","function","calls","and","contains","the","parameter","to","be","renamed","."]
code: def node_should_be_modified(self, node):
      """Checks if the node is an estimator constructor and contains any relevant parameters.
  
      This looks for the following parameters:
  
      - ``train_instance_count``
      - ``train_instance_type``
      - ``train_max_run``
      - ``train_max_wait``
      - ``train_use_spot_instances``
      - ``train_volume_kms_key``
      - ``train_volume_size``
  
      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`` matches the relevant function calls and
              contains the parameter to be renamed.
      """
      return matching.matches_any(
          node, ESTIMATORS
      ) and self._has_train_parameter(node)
  
imports: from __future__ import absolute_import
  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 the TrainPrefixRemover obj's underlying member method code with example usage: obj.node_should_be_modified(node) and returns: unknown