code: def _flag_data_for_source(source):
      if source.parsed_uri.scheme == "file":
          return _flag_data_for_file(source)
      if source.parsed_uri.scheme == "operation":
          return _flag_data_for_operation(source)
      return None
  
file_path: guildai/guild/plugins/resource_flags.py
imports: import logging
  from guild import guildfile
  from guild import op_dep
  from guild import plugin
label_desc: Use image node_id 4 for calling a global function with example usage: _flag_data_for_source(source) and returns: None, _flag_data_for_file, _flag_data_for_operation