class_docstr: A class to rename SerDe objects imported from ``sagemaker.predictor``.
class_docstr_tok: ["A","class","to","rename","SerDe","objects","imported","from","``","sagemaker.predictor","``","."]
docstr: Checks if the ``ast.Name`` node identifies a SerDe object.
  
  This looks for the following objects:
  
  - ``sagemaker.predictor.csv_serializer``
  - ``sagemaker.predictor.json_serializer``
  - ``sagemaker.predictor.npy_serializer``
  - ``sagemaker.predictor.csv_deserializer``
  - ``sagemaker.predictor.json_deserializer``
  - ``sagemaker.predictor.numpy_deserializer``
  
  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`` instantiates a SerDe class.
docstr_tok: ["Checks","if","the","``","ast.Name","``","node","identifies","a","SerDe","object",".","This","looks","for","the","following","objects",":","-","``","sagemaker.predictor.csv_serializer","``","-","``","sagemaker.predictor.json_serializer","``","-","``","sagemaker.predictor.npy_serializer","``","-","``","sagemaker.predictor.csv_deserializer","``","-","``","sagemaker.predictor.json_deserializer","``","-","``","sagemaker.predictor.numpy_deserializer","``","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","``","instantiates","a","SerDe","class","."]
code: def node_should_be_modified(self, node):
      """Checks if the ``ast.Name`` node identifies a SerDe object.
  
      This looks for the following objects:
  
      - ``sagemaker.predictor.csv_serializer``
      - ``sagemaker.predictor.json_serializer``
      - ``sagemaker.predictor.npy_serializer``
      - ``sagemaker.predictor.csv_deserializer``
      - ``sagemaker.predictor.json_deserializer``
      - ``sagemaker.predictor.numpy_deserializer``
  
      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`` instantiates a SerDe class.
      """
      name = node.id if isinstance(node, ast.Name) else node.attr
      return name in OLD_OBJECT_NAMES
  
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 the SerdeObjectRenamer obj's underlying member method code with example usage: obj.node_should_be_modified(node) and returns: unknown