nodes: 0, module; 1, function_definition; 2, function_name:get_videos_for_ids; 3, parameters; 4, block; 5, identifier:edx_video_ids; 6, default_parameter; 7, default_parameter; 8, expression_statement; 9, expression_statement; 10, return_statement; 11, identifier:sort_field; 12, None; 13, identifier:sort_dir; 14, attribute; 15, comment:"""
      Returns an iterator of videos that match the given list of ids.
  
      Args:
          edx_video_ids (list)
          sort_field (VideoSortField)
          sort_dir (SortDirection)
  
      Returns:
          A generator expression that contains the videos found, sorted by the
          given field and direction, with ties broken by edx_video_id to ensure a
          total order
      """; 16, assignment; 17, identifier:videos; 18, identifier:SortDirection; 19, identifier:asc; 20, pattern_list; 21, call; 22, identifier:videos; 23, identifier:__; 24, identifier:_get_videos_for_filter; 25, argument_list; 26, dictionary; 27, identifier:sort_field; 28, identifier:sort_dir; 29, pair; 30, string:"edx_video_id__in"; 31, identifier:edx_video_ids
code: def get_videos_for_ids(
          edx_video_ids,
          sort_field=None,
          sort_dir=SortDirection.asc
  ):
      """
      Returns an iterator of videos that match the given list of ids.
  
      Args:
          edx_video_ids (list)
          sort_field (VideoSortField)
          sort_dir (SortDirection)
  
      Returns:
          A generator expression that contains the videos found, sorted by the
          given field and direction, with ties broken by edx_video_id to ensure a
          total order
      """
      videos, __ = _get_videos_for_filter(
          {"edx_video_id__in":edx_video_ids},
          sort_field,
          sort_dir,
      )
      return videos