class_docstr: A class to rename SerDe classes.
class_docstr_tok: ["A","class","to","rename","SerDe","classes","."]
docstr: Checks if the ``ast.Call`` node instantiates a SerDe class.
  
  This looks for the following calls (both with and without namespaces):
  
  - ``sagemaker.predictor._CsvSerializer``
  - ``sagemaker.predictor._JsonSerializer``
  - ``sagemaker.predictor._NpySerializer``
  - ``sagemaker.predictor._CsvDeserializer``
  - ``sagemaker.predictor.BytesDeserializer``
  - ``sagemaker.predictor.StringDeserializer``
  - ``sagemaker.predictor.StreamDeserializer``
  - ``sagemaker.predictor._NumpyDeserializer``
  - ``sagemaker.predictor._JsonDeserializer``
  - ``sagemaker.amazon.common.numpy_to_record_serializer``
  - ``sagemaker.amazon.common.record_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.Call","``","node","instantiates","a","SerDe","class",".","This","looks","for","the","following","calls","(","both","with","and","without","namespaces",")",":","-","``","sagemaker.predictor._CsvSerializer","``","-","``","sagemaker.predictor._JsonSerializer","``","-","``","sagemaker.predictor._NpySerializer","``","-","``","sagemaker.predictor._CsvDeserializer","``","-","``","sagemaker.predictor.BytesDeserializer","``","-","``","sagemaker.predictor.StringDeserializer","``","-","``","sagemaker.predictor.StreamDeserializer","``","-","``","sagemaker.predictor._NumpyDeserializer","``","-","``","sagemaker.predictor._JsonDeserializer","``","-","``","sagemaker.amazon.common.numpy_to_record_serializer","``","-","``","sagemaker.amazon.common.record_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.Call`` node instantiates a SerDe class.
  
      This looks for the following calls (both with and without namespaces):
  
      - ``sagemaker.predictor._CsvSerializer``
      - ``sagemaker.predictor._JsonSerializer``
      - ``sagemaker.predictor._NpySerializer``
      - ``sagemaker.predictor._CsvDeserializer``
      - ``sagemaker.predictor.BytesDeserializer``
      - ``sagemaker.predictor.StringDeserializer``
      - ``sagemaker.predictor.StreamDeserializer``
      - ``sagemaker.predictor._NumpyDeserializer``
      - ``sagemaker.predictor._JsonDeserializer``
      - ``sagemaker.amazon.common.numpy_to_record_serializer``
      - ``sagemaker.amazon.common.record_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.
      """
      return matching.matches_any(node, OLD_CLASS_NAME_TO_NAMESPACES)
  
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 SerdeConstructorRenamer obj's underlying member method code with example usage: obj.node_should_be_modified(node) and returns: matching