code: def get_nested_dmaps(dmap):
      
      if not isinstance(dmap, DynamicMap):
          return []
      dmaps = [dmap]
      for o in dmap.callback.inputs:
          dmaps.extend(get_nested_dmaps(o))
      return list(set(dmaps))
docs: Recurses DynamicMap to find DynamicMaps inputs
  
      Args:
          dmap: DynamicMap to recurse to look for DynamicMap inputs
  
      Returns:
          List of DynamicMap instances that were found