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: Function to check Airflow model config and if it contains positional arguments.
  
  Checks if the ``ast.Call`` node creates an Airflow model config and
  contains positional arguments. This looks for the following formats:
  
  - ``model_config``
  - ``airflow.model_config``
  - ``workflow.airflow.model_config``
  - ``sagemaker.workflow.airflow.model_config``
  
  where ``model_config`` is either ``model_config`` or ``model_config_from_estimator``.
  
  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`` is either a ``model_config`` call or
          a ``model_config_from_estimator`` call and has positional arguments.
docstr_tok: ["Function","to","check","Airflow","model","config","and","if","it","contains","positional","arguments",".","Checks","if","the","``","ast.Call","``","node","creates","an","Airflow","model","config","and","contains","positional","arguments",".","This","looks","for","the","following","formats",":","-","``","model_config","``","-","``","airflow.model_config","``","-","``","workflow.airflow.model_config","``","-","``","sagemaker.workflow.airflow.model_config","``","where","``","model_config","``","is","either","``","model_config","``","or","``","model_config_from_estimator","``",".","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","``","is","either","a","``","model_config","``","call","or","a","``","model_config_from_estimator","``","call","and","has","positional","arguments","."]
code: def node_should_be_modified(self, node):
      """Function to check Airflow model config and if it contains positional arguments.
  
      Checks if the ``ast.Call`` node creates an Airflow model config and
      contains positional arguments. This looks for the following formats:
  
      - ``model_config``
      - ``airflow.model_config``
      - ``workflow.airflow.model_config``
      - ``sagemaker.workflow.airflow.model_config``
  
      where ``model_config`` is either ``model_config`` or ``model_config_from_estimator``.
  
      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`` is either a ``model_config`` call or
              a ``model_config_from_estimator`` call and has positional arguments.
      """
      return (
          matching.matches_any(node, FUNCTIONS) and len(node.args) > 0
      )
  
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 1 for calling the ModelConfigArgModifier obj's underlying member method code with example usage: obj.node_should_be_modified(node) and returns: unknown