class_docstr: An ``ast.NodeTransformer`` subclass that walks the abstract syntax tree.
  
  It modifies nodes to upgrade the given SageMaker Python SDK code.
docstr: Visits an ``ast.ImportFrom`` node and returns a modified node or None.
  
  See https://docs.python.org/3/library/ast.html#ast.NodeTransformer.
  
  Args:
      node (ast.ImportFrom): a node that represents an import statement.
  
  Returns:
      ast.AST: if the returned node is None, the original node is removed
          from its location. Otherwise, the original node is replaced with
          the returned node.
docstr_tok: ["Visits","an","``","ast.ImportFrom","``","node","and","returns","a","modified","node","or","None",".","See","https",":","\/\/docs.python.org\/3\/library\/ast.html","#","ast.NodeTransformer",".","Args",":","node","(","ast.ImportFrom",")",":","a","node","that","represents","an","import","statement",".","Returns",":","ast.AST",":","if","the","returned","node","is","None",",","the","original","node","is","removed","from","its","location",".","Otherwise",",","the","original","node","is","replaced","with","the","returned","node","."]
code: def visit_ImportFrom(self, node):
      """Visits an ``ast.ImportFrom`` node and returns a modified node or None.
  
      See https://docs.python.org/3/library/ast.html#ast.NodeTransformer.
  
      Args:
          node (ast.ImportFrom): a node that represents an import statement.
  
      Returns:
          ast.AST: if the returned node is None, the original node is removed
              from its location. Otherwise, the original node is replaced with
              the returned node.
      """
      for import_checker in IMPORT_FROM_MODIFIERS:
          node = import_checker.check_and_modify_node(node)
      return ast.fix_missing_locations(node) if node else None
  
file_path: sagemaker-python-sdk/src/sagemaker/cli/compatibility/v2/ast_transformer.py
imports: from __future__ import absolute_import
  import ast
  from sagemaker.cli.compatibility.v2 import modifiers
label_desc: Use image node_id 5 for calling the ASTTransformer obj's underlying member method code with example usage: obj.visit_ImportFrom(node) and returns: unknown