nodes: 0, module; 1, function_definition; 2, function_name:get_statements_for_paper; 3, parameters; 4, block; 5, identifier:ids; 6, default_parameter; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, expression_statement; 11, expression_statement; 12, expression_statement; 13, expression_statement; 14, return_statement; 15, identifier:ev_limit; 16, integer:10; 17, identifier:best_first; 18, True; 19, identifier:tries; 20, integer:2; 21, identifier:max_stmts; 22, None; 23, comment:"""Get the set of raw Statements extracted from a paper given by the id.
  
      Parameters
      ----------
      ids : list[(<id type>, <id value>)]
          A list of tuples with ids and their type. The type can be any one of
          'pmid', 'pmcid', 'doi', 'pii', 'manuscript id', or 'trid', which is the
          primary key id of the text references in the database.
      ev_limit : int or None
          Limit the amount of evidence returned per Statement. Default is 10.
      best_first : bool
          If True, the preassembled statements will be sorted by the amount of
          evidence they have, and those with the most evidence will be
          prioritized. When using `max_stmts`, this means you will get the "best"
          statements. If False, statements will be queried in arbitrary order.
      tries : int > 0
          Set the number of times to try the query. The database often caches
          results, so if a query times out the first time, trying again after a
          timeout will often succeed fast enough to avoid a timeout. This can also
          help gracefully handle an unreliable connection, if you're willing to
          wait. Default is 2.
      max_stmts : int or None
          Select a maximum number of statements to be returned. Default is None.
  
      Returns
      -------
      stmts : list[:py:class:`indra.statements.Statement`]
          A list of INDRA Statement instances.
      """; 24, assignment; 25, assignment; 26, assignment; 27, call; 28, identifier:id_l; 29, list_comprehension; 30, identifier:resp; 31, call; 32, identifier:stmts_json; 33, subscript; 34, identifier:stmts_from_json; 35, argument_list; 36, dictionary; 37, for_in_clause; 38, identifier:submit_statement_request; 39, argument_list; 40, call; 41, string; 42, call; 43, pair; 44, pair; 45, pattern_list; 46, identifier:ids; 47, string; 48, string; 49, keyword_argument; 50, keyword_argument; 51, keyword_argument; 52, keyword_argument; 53, keyword_argument; 54, attribute; 55, argument_list; 56, string_content:statements; 57, attribute; 58, argument_list; 59, string; 60, identifier:id_val; 61, string; 62, identifier:id_type; 63, identifier:id_type; 64, identifier:id_val; 65, string_content:post; 66, string_content:from_papers; 67, identifier:data; 68, dictionary; 69, identifier:ev_limit; 70, identifier:ev_limit; 71, identifier:best_first; 72, identifier:best_first; 73, identifier:tries; 74, identifier:tries; 75, identifier:max_stmts; 76, identifier:max_stmts; 77, identifier:resp; 78, identifier:json; 79, identifier:stmts_json; 80, identifier:values; 81, string_content:id; 82, string_content:type; 83, pair; 84, string; 85, identifier:id_l; 86, string_content:ids
code: def get_statements_for_paper(ids, ev_limit=10, best_first=True, tries=2,
                               max_stmts=None):
      """Get the set of raw Statements extracted from a paper given by the id.
  
      Parameters
      ----------
      ids : list[(<id type>, <id value>)]
          A list of tuples with ids and their type. The type can be any one of
          'pmid', 'pmcid', 'doi', 'pii', 'manuscript id', or 'trid', which is the
          primary key id of the text references in the database.
      ev_limit : int or None
          Limit the amount of evidence returned per Statement. Default is 10.
      best_first : bool
          If True, the preassembled statements will be sorted by the amount of
          evidence they have, and those with the most evidence will be
          prioritized. When using `max_stmts`, this means you will get the "best"
          statements. If False, statements will be queried in arbitrary order.
      tries : int > 0
          Set the number of times to try the query. The database often caches
          results, so if a query times out the first time, trying again after a
          timeout will often succeed fast enough to avoid a timeout. This can also
          help gracefully handle an unreliable connection, if you're willing to
          wait. Default is 2.
      max_stmts : int or None
          Select a maximum number of statements to be returned. Default is None.
  
      Returns
      -------
      stmts : list[:py:class:`indra.statements.Statement`]
          A list of INDRA Statement instances.
      """
      id_l = [{'id': id_val, 'type': id_type} for id_type, id_val in ids]
      resp = submit_statement_request('post', 'from_papers', data={'ids': id_l},
                                      ev_limit=ev_limit, best_first=best_first,
                                      tries=tries, max_stmts=max_stmts)
      stmts_json = resp.json()['statements']
      return stmts_from_json(stmts_json.values())