code: def get_cmd_ex(interface):
      """Return the examples for the command defined by 'interface'.
  
      Parameters
      ----------
      interface : subclass of Interface
      """
      from datalad.interface.base import build_example
  
      intf_ex = "\n\n*Examples*\n\n"
      for example in interface._examples_:
          intf_ex += build_example(example, api="cmdline")
      return intf_ex
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_cmd_ex(interface) and returns: intf_ex