code: def deepCopyContours(
      glyphSet, parent, composite, transformation, specificComponents=None
  ):
      
  
      for nestedComponent in composite.components:
          # Because this function works recursively, test at each turn if we are going to
          # recurse into a specificComponent. If so, set the specificComponents argument
          # to None so we unconditionally decompose the possibly nested component
          # completely.
          specificComponentsEffective = specificComponents
          if specificComponentsEffective:
              if nestedComponent.baseGlyph not in specificComponentsEffective:
                  continue
              else:
                  specificComponentsEffective = None
  
          try:
              nestedBaseGlyph = glyphSet[nestedComponent.baseGlyph]
          except KeyError:
              logger.warning(
                  "dropping non-existent component '%s' in glyph '%s'",
                  nestedComponent.baseGlyph,
                  parent.name,
              )
          else:
              deepCopyContours(
                  glyphSet,
                  parent,
                  nestedBaseGlyph,
                  transformation.transform(nestedComponent.transformation),
                  specificComponents=specificComponentsEffective,
              )
  
      # Check if there are any contours to copy before instantiating pens.
      if composite != parent and len(composite):
          if transformation == Identity:
              pen = parent.getPen()
          else:
              pen = TransformPen(parent.getPen(), transformation)
              # if the transformation has a negative determinant, it will
              # reverse the contour direction of the component
              xx, xy, yx, yy = transformation[:4]
              if xx * yy - xy * yx < 0:
                  pen = ReverseContourPen(pen)
  
          for contour in composite:
              contour.draw(pen)
docs: Copy contours from component to parent, including nested components.
  
      specificComponent: an optional list of glyph name strings. If not passed or
      None, decompose all components of a glyph unconditionally and completely. If
      passed, only completely decompose components whose baseGlyph is in the list.