code: def is_dynamic_overlay(dmap):
      
      if not isinstance(dmap, DynamicMap):
          return False
      elif dmap.callback._is_overlay:
          return True
      else:
          return any(is_dynamic_overlay(dm) for dm in dmap.callback.inputs)
docs: Traverses a DynamicMap graph and determines if any components
      were overlaid dynamically (i.e. by * on a DynamicMap).