class_docstr: A class to update import statements starting with ``from sagemaker.predictor``.
class_docstr_tok: ["A","class","to","update","import","statements","starting","with","``","from","sagemaker.predictor","``","."]
docstr: Removes the imported SerDe classes, as applicable.
  
  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 remove imported serializers. If nothing is
          imported, None is returned.
docstr_tok: ["Removes","the","imported","SerDe","classes",",","as","applicable",".","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","remove","imported","serializers",".","If","nothing","is","imported",",","None","is","returned","."]
code: def modify_node(self, node):
      """Removes the imported SerDe classes, as applicable.
  
      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 remove imported serializers. If nothing is
              imported, None is returned.
      """
      i = 0
      while i < len(node.names):
          name = node.names[i].name
          if name in OLD_CLASS_NAMES | OLD_OBJECT_NAMES:
              node.names.pop(i)
          else:
              i += 1
  
      return node if node.names else None
  
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 SerdeImportFromPredictorRenamer obj's underlying member method code with example usage: obj.modify_node(node) and returns: unknown