code: def _swap_curly(string):
      """Swap single and double curly brackets"""
      return (
          string.replace("{{ ", "{{")
          .replace("{{", "\x00")
          .replace("{", "{{")
          .replace("\x00", "{")
          .replace(" }}", "}}")
          .replace("}}", "\x00")
          .replace("}", "}}")
          .replace("\x00", "}")
      )
  
imports: from __future__ import division
  import re
  from decimal import Decimal
  from math import ceil, cos, floor, log10, pi, sin
label_desc: Use image node_id 9 for calling a global function with example usage: _swap_curly(string) and returns: string