code: def _format_model(model):
      modeldef = model.modeldef
      description, details = util.split_description(
          modeldef.description
      )
      return {
          "fullname": model.fullname,
          "name": modeldef.name,
          "source": modeldef.guildfile.src,
          "description": description,
          "details": details,
          "operations": ", ".join(
              [op.name for op in modeldef.operations]
          ),
          "_model": model,
      }
  
file_path: guildai/guild/commands/models_impl.py
imports: import os
  from guild import cli
  from guild import cmd_impl_support
  from guild import config
  from guild import guildfile
  from guild import model
  from guild import util
label_desc: Use image node_id 5 for calling a global function with example usage: _format_model(model) and returns: dict