code: def _flags_data_for_notebook(notebook_path, opdef=None, cache=None):
      cache = cache or {}
      try:
          return cache[notebook_path]
      except KeyError:
          data = dict(_iter_notebook_flag_data(notebook_path, opdef))
          return cache.setdefault(notebook_path, data)
  
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 9 for calling a global function with example usage: _flags_data_for_notebook(notebook_path, opdef, cache) and returns: cache, cache