parameters: (self, tasks)
return_statement: return assetlist.AssetList(assets)
docstring: Get assets list for requested tasks.
  
          Parameters
          ----------
          tasks: iterable of subsync.synchro.SyncTask
  
          Returns
          -------
          subsync.assets.AssetList
docstring_summary: Get assets list for requested tasks.
docstring_tokens: Get assets list for requested tasks .
function: def getAssetsForTasks(self, tasks):
          """Get assets list for requested tasks.
  
          Parameters
          ----------
          tasks: iterable of subsync.synchro.SyncTask
  
          Returns
          -------
          subsync.assets.AssetList
          """
          assets = set()
          for task in tasks:
              sub, ref = task.sub, task.ref
              if ref and ref.type == 'audio':
                  assets.add(self.getAsset('speech', [ref.lang]))
              if sub and sub.lang and ref and ref.lang and sub.lang != ref.lang:
                  langs = sorted([sub.lang, ref.lang])
                  assets.add(self.getAsset('dict', langs))
          return assetlist.AssetList(assets)
function_tokens: def getAssetsForTasks ( self , tasks ) : assets = set ( ) for task in tasks : sub , ref = task . sub , task . ref if ref and ref . type == 'audio' : assets . add ( self . getAsset ( 'speech' , [ ref . lang ] ) ) if sub and sub . lang and ref and ref . lang and sub . lang != ref . lang : langs = sorted ( [ sub . lang , ref . lang ] ) assets . add ( self . getAsset ( 'dict' , langs ) ) return assetlist . AssetList ( assets )