class_docstr: Static class that resolves shape names to their corresponding
  shape drawer classes.
  
  Classes that are derived from L{ShapeDrawer} in this module are
  automatically registered by L{ShapeDrawerDirectory} when the module
  is loaded for the first time.
class_docstr_tok: ["Static","class","that","resolves","shape","names","to","their","corresponding","shape","drawer","classes",".","Classes","that","are","derived","from","L","{","ShapeDrawer","}","in","this","module","are","automatically","registered","by","L","{","ShapeDrawerDirectory","}","when","the","module","is","loaded","for","the","first","time","."]
docstr: Given a shape name, returns the corresponding shape drawer class
  or the given default shape drawer if the shape name is unknown.
  
  @param shape: the name of the shape
  @param default: the default shape drawer to return when the shape
    is unknown
  @return: the shape drawer class corresponding to the given name or
    the default shape drawer class if the name is unknown
docstr_tok: ["Given","a","shape","name",",","returns","the","corresponding","shape","drawer","class","or","the","given","default","shape","drawer","if","the","shape","name","is","unknown",".","@","param","shape",":","the","name","of","the","shape","@","param","default",":","the","default","shape","drawer","to","return","when","the","shape","is","unknown","@","return",":","the","shape","drawer","class","corresponding","to","the","given","name","or","the","default","shape","drawer","class","if","the","name","is","unknown"]
code: def resolve_default(cls, shape, default=NullDrawer):
      """Given a shape name, returns the corresponding shape drawer class
      or the given default shape drawer if the shape name is unknown.
  
      @param shape: the name of the shape
      @param default: the default shape drawer to return when the shape
        is unknown
      @return: the shape drawer class corresponding to the given name or
        the default shape drawer class if the name is unknown
      """
      return cls.known_shapes.get(shape, default)
  
imports: from abc import ABCMeta, abstractmethod
  from math import atan2, copysign, cos, pi, sin
  import sys
  from igraph.drawing.matplotlib.utils import find_matplotlib
label_desc: Use image node_id 4 for calling the ShapeDrawerDirectory obj's underlying member method code with example usage: obj.resolve_default(cls, shape, default) and returns: cls