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: Checks if the import statement imports a SerDe from the ``sagemaker.amazon.common``.
  
  This checks for:
  - ``sagemaker.amazon.common.numpy_to_record_serializer``
  - ``sagemaker.amazon.common.record_deserializer``
  
  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:
      bool: True if and only if the ``ast.ImportFrom`` imports a SerDe from
          the ``sagemaker.amazon.common`` module.
docstr_tok: ["Checks","if","the","import","statement","imports","a","SerDe","from","the","``","sagemaker.amazon.common","``",".","This","checks","for",":","-","``","sagemaker.amazon.common.numpy_to_record_serializer","``","-","``","sagemaker.amazon.common.record_deserializer","``","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",":","bool",":","True","if","and","only","if","the","``","ast.ImportFrom","``","imports","a","SerDe","from","the","``","sagemaker.amazon.common","``","module","."]
code: def node_should_be_modified(self, node):
      """Checks if the import statement imports a SerDe from the ``sagemaker.amazon.common``.
  
      This checks for:
      - ``sagemaker.amazon.common.numpy_to_record_serializer``
      - ``sagemaker.amazon.common.record_deserializer``
  
      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:
          bool: True if and only if the ``ast.ImportFrom`` imports a SerDe from
              the ``sagemaker.amazon.common`` module.
      """
      return node.module == "sagemaker.amazon.common" and any(
          alias.name in OLD_AMAZON_CLASS_NAMES for alias in node.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 SerdeImportFromAmazonCommonRenamer obj's underlying member method code with example usage: obj.node_should_be_modified(node) and returns: unknown