class_docstr: A class to rename SerDe objects imported from ``sagemaker.predictor``.
class_docstr_tok: ["A","class","to","rename","SerDe","objects","imported","from","``","sagemaker.predictor","``","."]
docstr: Replaces the ``ast.Name`` node with a ``ast.Call`` node.
  
  Replaced node instantiates a class available in version 2.0 and later of the Python SDK.
  
  - ``sagemaker.serializers.CSVSerializer()``
  - ``sagemaker.serializers.JSONSerializer()``
  - ``sagemaker.serializers.NumpySerializer()``
  - ``sagemaker.deserializers.CSVDeserializer()``
  - ``sagemaker.deserializers.JSONDeserializer()``
  - ``sagemaker.deserializers.NumpyDeserializer()``
  
  The ``sagemaker`` prefix is excluded from the returned node.
  
  Args:
      node (ast.Name): a node that represents a Python identifier.
  
  Returns:
      ast.Call: a node that represents the instantiation of a SerDe object.
docstr_tok: ["Replaces","the","``","ast.Name","``","node","with","a","``","ast.Call","``","node",".","Replaced","node","instantiates","a","class","available","in","version","2.0","and","later","of","the","Python","SDK",".","-","``","sagemaker.serializers.CSVSerializer","(",")","``","-","``","sagemaker.serializers.JSONSerializer","(",")","``","-","``","sagemaker.serializers.NumpySerializer","(",")","``","-","``","sagemaker.deserializers.CSVDeserializer","(",")","``","-","``","sagemaker.deserializers.JSONDeserializer","(",")","``","-","``","sagemaker.deserializers.NumpyDeserializer","(",")","``","The","``","sagemaker","``","prefix","is","excluded","from","the","returned","node",".","Args",":","node","(","ast.Name",")",":","a","node","that","represents","a","Python","identifier",".","Returns",":","ast.Call",":","a","node","that","represents","the","instantiation","of","a","SerDe","object","."]
code: def modify_node(self, node):
      """Replaces the ``ast.Name`` node with a ``ast.Call`` node.
  
      Replaced node instantiates a class available in version 2.0 and later of the Python SDK.
  
      - ``sagemaker.serializers.CSVSerializer()``
      - ``sagemaker.serializers.JSONSerializer()``
      - ``sagemaker.serializers.NumpySerializer()``
      - ``sagemaker.deserializers.CSVDeserializer()``
      - ``sagemaker.deserializers.JSONDeserializer()``
      - ``sagemaker.deserializers.NumpyDeserializer()``
  
      The ``sagemaker`` prefix is excluded from the returned node.
  
      Args:
          node (ast.Name): a node that represents a Python identifier.
  
      Returns:
          ast.Call: a node that represents the instantiation of a SerDe object.
      """
      object_name = node.id if isinstance(node, ast.Name) else node.attr
      new_class_name = OLD_OBJECT_NAME_TO_NEW_CLASS_NAME[object_name]
      namespace_name = NEW_CLASS_NAME_TO_NAMESPACES[new_class_name][0]
      subpackage_name = namespace_name.split(".")[1]
      return ast.Call(
          func=ast.Attribute(
              value=ast.Name(id=subpackage_name), attr=new_class_name
          ),
          args=[],
          keywords=[],
      )
  
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 SerdeObjectRenamer obj's underlying member method code with example usage: obj.modify_node(node) and returns: ast