code: def guildfile_loaded(self, gf):
      cache = {}
      for m in gf.models.values():
          for opdef in m.operations:
              _maybe_apply_main(opdef)
              _maybe_apply_notebook_flags(opdef, cache)
  
imports: import ast
  import json
  import logging
  import os
  import re
  from guild import config
  from guild import guildfile
  from guild import model
  from guild import plugin
  from guild import python_util
  from guild import util
  from .None import flags_import_util
label_desc: Use image node_id 2 for calling the NotebookPlugin obj's underlying member method code with example usage: obj.guildfile_loaded(gf) without return types