class_docstr: The TabPy state object that stores attributes
  about this TabPy and perform GET/SET on these
  attributes.
  
  Attributes:
      - name
      - description
      - endpoints (name, description, docstring, version, target)
      - revision number
  
  When the state object is initialized, the state is saved as a ConfigParser.
  There is a config to any attribute.
class_docstr_tok: ["The","TabPy","state","object","that","stores","attributes","about","this","TabPy","and","perform","GET\/SET","on","these","attributes",".","Attributes",":","-","name","-","description","-","endpoints","(","name",",","description",",","docstring",",","version",",","target",")","-","revision","number","When","the","state","object","is","initialized",",","the","state","is","saved","as","a","ConfigParser",".","There","is","a","config","to","any","attribute","."]
code: def _add_update_endpoints_config(self, endpoints):
      # save the endpoint info to config
      dstring = ""
      for endpoint_name in endpoints:
          try:
              info = endpoints[endpoint_name]
              dstring = str(
                  bytes(info["docstring"], "utf-8").decode(
                      "unicode_escape"
                  )
              )
              self._set_config_value(
                  _QUERY_OBJECT_DOCSTRING,
                  endpoint_name,
                  dstring,
                  _update_revision=False,
              )
              del info["docstring"]
              self._set_config_value(
                  _DEPLOYMENT_SECTION_NAME,
                  endpoint_name,
                  json.dumps(info),
              )
          except Exception as e:
              logger.error(f"Unable to write endpoints config: {e}")
              raise
  
imports: import json
  import logging
  from tabpy.tabpy_server.management.util import write_state_config
  from threading import Lock
  from time import time
label_desc: Use image node_id 12 for calling the TabPyState obj's underlying member method code with example usage: obj._add_update_endpoints_config(endpoints) without return types