docs: def listTemplates(data={}):
          """
          Fetch existing Templates details.
  
          Args:
              `data`: dictionary containing the value of page number and per-page value
          Returns:
              Dictionary containing paging_info and command_templates details
          """
          conn = Qubole.agent()
          url_path = Template.rest_entity_path
          page_attr = []
          if "page" in data and data["page"] is not None:
              page_attr.append("page=%s" % data["page"])
          if "per_page" in data and data["per_page"] is not None:
              page_attr.append("per_page=%s" % data["per_page"])
          if page_attr:
              url_path = "%s?%s" % (url_path, "&".join(page_attr))
  
          return conn.get(url_path)