class_docstr: A class to update import statements starting with ``from sagemaker.amazon.common``.
class_docstr_tok: ["A","class","to","update","import","statements","starting","with","``","from","sagemaker.amazon.common","``","."]
docstr: Upgrades the ``numpy_to_record_serializer`` and ``record_deserializer`` imports.
  
  This upgrades the classes to (if applicable):
  - ``sagemaker.amazon.common.RecordSerializer``
  - ``sagemaker.amazon.common.RecordDeserializer``
  
  Args:
      node (ast.ImportFrom): a node that represents a ``from ... import ... `` statement.
          For more, see https://docs.python.org/3/library/ast.html#abstract-grammar.
  
  Returns:
      ast.ImportFrom: a node that represents a import statement, which has
          been modified to import the upgraded class name.
docstr_tok: ["Upgrades","the","``","numpy_to_record_serializer","``","and","``","record_deserializer","``","imports",".","This","upgrades","the","classes","to","(","if","applicable",")",":","-","``","sagemaker.amazon.common.RecordSerializer","``","-","``","sagemaker.amazon.common.RecordDeserializer","``","Args",":","node","(","ast.ImportFrom",")",":","a","node","that","represents","a","``","from","...","import","...","``","statement",".","For","more",",","see","https",":","\/\/docs.python.org\/3\/library\/ast.html","#","abstract-grammar",".","Returns",":","ast.ImportFrom",":","a","node","that","represents","a","import","statement",",","which","has","been","modified","to","import","the","upgraded","class","name","."]
code: def modify_node(self, node):
      """Upgrades the ``numpy_to_record_serializer`` and ``record_deserializer`` imports.
  
      This upgrades the classes to (if applicable):
      - ``sagemaker.amazon.common.RecordSerializer``
      - ``sagemaker.amazon.common.RecordDeserializer``
  
      Args:
          node (ast.ImportFrom): a node that represents a ``from ... import ... `` statement.
              For more, see https://docs.python.org/3/library/ast.html#abstract-grammar.
  
      Returns:
          ast.ImportFrom: a node that represents a import statement, which has
              been modified to import the upgraded class name.
      """
      for alias in node.names:
          if alias.name in OLD_AMAZON_CLASS_NAMES:
              alias.name = OLD_CLASS_NAME_TO_NEW_CLASS_NAME[alias.name]
      return node
  
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 2 for calling the SerdeImportFromAmazonCommonRenamer obj's underlying member method code with example usage: obj.modify_node(node) and returns: node