class_docstr: A class to import the ``sagemaker.serializers`` module, if necessary.
  
  This looks for references to the following classes:
  
  - ``sagemaker.serializers.CSVSerializer``
  - ``sagemaker.serializers.JSONSerializer``
  - ``sagemaker.serializer.NumpySerializer``
  
  Because ``SerializerImportInserter`` is gauranteed to run after
  ``SerdeConstructorRenamer`` and ``SerdeObjectRenamer``,
  we only need to check for the new serializer class names.
class_docstr_tok: ["A","class","to","import","the","``","sagemaker.serializers","``","module",",","if","necessary",".","This","looks","for","references","to","the","following","classes",":","-","``","sagemaker.serializers.CSVSerializer","``","-","``","sagemaker.serializers.JSONSerializer","``","-","``","sagemaker.serializer.NumpySerializer","``","Because","``","SerializerImportInserter","``","is","gauranteed","to","run","after","``","SerdeConstructorRenamer","``","and","``","SerdeObjectRenamer","``",",","we","only","need","to","check","for","the","new","serializer","class","names","."]
docstr: Initialize the ``class_names`` and ``import_node`` attributes.
  
  Amazon-specific serializers are ignored because they are not defined in
  the ``sagemaker.serializers`` module.
docstr_tok: ["Initialize","the","``","class_names","``","and","``","import_node","``","attributes",".","Amazon-specific","serializers","are","ignored","because","they","are","not","defined","in","the","``","sagemaker.serializers","``","module","."]
code: def __init__(self):
      """Initialize the ``class_names`` and ``import_node`` attributes.
  
      Amazon-specific serializers are ignored because they are not defined in
      the ``sagemaker.serializers`` module.
      """
      class_names = {
          class_name
          for class_name in NEW_CLASS_NAMES - NEW_AMAZON_CLASS_NAMES
          if "Serializer" in class_name
      }
      import_node = ast.ImportFrom(
          module="sagemaker",
          names=[ast.alias(name="serializers", asname=None)],
          level=0,
      )
      super().__init__(class_names, import_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 1 to create a new SerializerImportInserter object from inherited base classes: _ImportInserter with example: obj = SerializerImportInserter()