class_docstr: Helper class that groups all the user interactions for a Figure
  
  Attributes
  ----------
  figure: `Figure`
  keypresslock: `widgets.LockDraw`
      `LockDraw` object to know if the `canvas` key_press_event is locked
  messagelock: `widgets.LockDraw`
      `LockDraw` object to know if the message is available to write
class_docstr_tok: ["Helper","class","that","groups","all","the","user","interactions","for","a","Figure","Attributes","--","--","--","--","--","figure",":","`","Figure","`","keypresslock",":","`","widgets.LockDraw","`","`","LockDraw","`","object","to","know","if","the","`","canvas","`","key_press_event","is","locked","messagelock",":","`","widgets.LockDraw","`","`","LockDraw","`","object","to","know","if","the","message","is","available","to","write"]
docstr: Return the tool object, also accepts the actual tool for convenience
  
  Parameters
  ----------
  name : str, ToolBase
      Name of the tool, or the tool itself
  warn : bool, optional
      If this method should give warnings.
docstr_tok: ["Return","the","tool","object",",","also","accepts","the","actual","tool","for","convenience","Parameters","--","--","--","--","--","name",":","str",",","ToolBase","Name","of","the","tool",",","or","the","tool","itself","warn",":","bool",",","optional","If","this","method","should","give","warnings","."]
code: def get_tool(self, name, warn=True):
      """
      Return the tool object, also accepts the actual tool for convenience
  
      Parameters
      ----------
      name : str, ToolBase
          Name of the tool, or the tool itself
      warn : bool, optional
          If this method should give warnings.
      """
      if isinstance(name, tools.ToolBase) and name.name in self._tools:
          return name
      if name not in self._tools:
          if warn:
              warnings.warn(
                  "ToolManager does not control tool %s" % name
              )
          return None
      return self._tools[name]
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import warnings
  import matplotlib.cbook
  import matplotlib.widgets
  from matplotlib.rcsetup import validate_stringlist
  import matplotlib.backend_tools
label_desc: Use image node_id 22 for calling the ToolManager obj's underlying member method code with example usage: obj.get_tool(name, warn) and returns: self, name, None