code: def getTemplateInstruments(self):
          
          items = dict()
          templates = self._get_worksheet_templates_brains()
          for template in templates:
              template_obj = api.get_object(template)
              uid_template = api.get_uid(template_obj)
              instrument = template_obj.getInstrument()
              uid_instrument = ""
              if instrument:
                  uid_instrument = api.get_uid(instrument)
              items[uid_template] = uid_instrument
  
          return json.dumps(items)
docs: Returns worksheet templates as JSON