class_docstr: A class to change ``ShuffleConfig`` usage to use ``sagemaker.inputs.ShuffleConfig``.
class_docstr_tok: ["A","class","to","change","``","ShuffleConfig","``","usage","to","use","``","sagemaker.inputs.ShuffleConfig","``","."]
docstr: Checks if the ``ast.Call`` node instantiates a class of interest.
  
  This looks for the following calls:
  
  - ``sagemaker.session.ShuffleConfig``
  - ``session.ShuffleConfig``
  
  Args:
      node (ast.Call): a node that represents a function call. For more,
          see https://docs.python.org/3/library/ast.html#abstract-grammar.
  
  Returns:
      bool: If the ``ast.Call`` instantiates a class of interest.
docstr_tok: ["Checks","if","the","``","ast.Call","``","node","instantiates","a","class","of","interest",".","This","looks","for","the","following","calls",":","-","``","sagemaker.session.ShuffleConfig","``","-","``","session.ShuffleConfig","``","Args",":","node","(","ast.Call",")",":","a","node","that","represents","a","function","call",".","For","more",",","see","https",":","\/\/docs.python.org\/3\/library\/ast.html","#","abstract-grammar",".","Returns",":","bool",":","If","the","``","ast.Call","``","instantiates","a","class","of","interest","."]
code: def node_should_be_modified(self, node):
      """Checks if the ``ast.Call`` node instantiates a class of interest.
  
      This looks for the following calls:
  
      - ``sagemaker.session.ShuffleConfig``
      - ``session.ShuffleConfig``
  
      Args:
          node (ast.Call): a node that represents a function call. For more,
              see https://docs.python.org/3/library/ast.html#abstract-grammar.
  
      Returns:
          bool: If the ``ast.Call`` instantiates a class of interest.
      """
      if isinstance(node.func, ast.Name):
          return False
  
      return matching.matches_name_or_namespaces(
          node, "ShuffleConfig", ("sagemaker.session", "session")
      )
  
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 ShuffleConfigModuleRenamer obj's underlying member method code with example usage: obj.node_should_be_modified(node) and returns: matching, False