class_docstr: Singleton object containing the current figure templates (aka themes)
class_docstr_tok: ["Singleton","object","containing","the","current","figure","templates","(","aka","themes",")"]
code: def _validate(self, value):
      if not self._validator:
          from plotly.validators.layout import TemplateValidator
  
          self._validator = TemplateValidator()
  
      return self._validator.validate_coerce(value)
  
imports: import textwrap
  import pkgutil
  import copy
  import os
  import json
  from functools import reduce
label_desc: Use image node_id 8 for calling the TemplatesConfig obj's underlying member method code with example usage: obj._validate(value) and returns: self