class_docstr: A class to handle argument changes for Airflow model config functions.
class_docstr_tok: ["A","class","to","handle","argument","changes","for","Airflow","model","config","functions","."]
docstr: Modifies the ``ast.Call`` node's arguments.
  
  The first argument, the instance type, is turned into a keyword arg,
  leaving the second argument, the model, to be the first argument.
  
  Args:
      node (ast.Call): a node that represents either a ``model_config`` call or
          a ``model_config_from_estimator`` call.
  
  Returns:
      ast.AST: the original node, which has been potentially modified.
docstr_tok: ["Modifies","the","``","ast.Call","``","node","'s","arguments",".","The","first","argument",",","the","instance","type",",","is","turned","into","a","keyword","arg",",","leaving","the","second","argument",",","the","model",",","to","be","the","first","argument",".","Args",":","node","(","ast.Call",")",":","a","node","that","represents","either","a","``","model_config","``","call","or","a","``","model_config_from_estimator","``","call",".","Returns",":","ast.AST",":","the","original","node",",","which","has","been","potentially","modified","."]
code: def modify_node(self, node):
      """Modifies the ``ast.Call`` node's arguments.
  
      The first argument, the instance type, is turned into a keyword arg,
      leaving the second argument, the model, to be the first argument.
  
      Args:
          node (ast.Call): a node that represents either a ``model_config`` call or
              a ``model_config_from_estimator`` call.
  
      Returns:
          ast.AST: the original node, which has been potentially modified.
      """
      instance_type = node.args.pop(0)
      node.keywords.append(
          ast.keyword(arg="instance_type", value=instance_type)
      )
      return node
  
file_path: sagemaker-python-sdk/src/sagemaker/cli/compatibility/v2/modifiers/airflow.py
imports: from __future__ import absolute_import
  import ast
  from sagemaker.cli.compatibility.v2.modifiers import matching, renamed_params
  from sagemaker.cli.compatibility.v2.modifiers.modifier import Modifier
label_desc: Use image node_id 2 for calling the ModelConfigArgModifier obj's underlying member method code with example usage: obj.modify_node(node) and returns: node