code: def parse_template(template):
      field_names = []
      i = 0
      in_field = False
      while i < len(template):
          if template[i] == "{":
              field_names.append("")
              in_field = True
          elif template[i] == "}":
              in_field = False
          elif in_field:
              field_names[-1] += template[i]
          else:
              pass
          i += 1
      return field_names
  
imports: import argparse
  import math
  import os
  import pathlib
  from collections import Counter
  import numpy
  import pandas
label_desc: Use image node_id 10 for calling a global function with example usage: parse_template(template) and returns: field_names