code: def getLayer(self, name):
          
          name = normalizers.normalizeLayerName(name)
          if name not in self.layerOrder:
              raise ValueError("No layer with the name '%s' exists." % name)
          layer = self._getLayer(name)
          self._setFontInLayer(layer)
          return layer
docs: Get the :class:`BaseLayer` with **name**.
  
              >>> layer = font.getLayer("My Layer 2")