code: def is_model_flavor(src):
      for node in ast.iter_child_nodes(ast.parse(src)):
          if (
              isinstance(node, ast.Assign)
              and isinstance(node.targets[0], ast.Name)
              and node.targets[0].id == "FLAVOR_NAME"
          ):
              return True
      return False
  
imports: import ast
  import os
  import mlflow
label_desc: Use image node_id 2 for calling a global function with example usage: is_model_flavor(src) and returns: False, True