nodes: 0, module; 1, function_definition; 2, function_name:get_analyses_at; 3, parameters; 4, block; 5, identifier:self; 6, identifier:slot; 7, expression_statement; 8, comment:# ensure we have an integer; 9, expression_statement; 10, if_statement; 11, expression_statement; 12, expression_statement; 13, for_statement; 14, return_statement; 15, comment:"""Returns the list of analyses assigned to the slot passed in, sorted by
          the positions they have within the slot.
  
          :param slot: the slot where the analyses are located
          :type slot: int
          :return: a list of analyses
          """; 16, assignment; 17, comparison_operator:slot < 1; 18, block; 19, assignment; 20, assignment; 21, identifier:pos; 22, identifier:layout; 23, block; 24, identifier:analyses; 25, identifier:slot; 26, call; 27, identifier:slot; 28, integer:1; 29, return_statement; 30, identifier:analyses; 31, call; 32, identifier:layout; 33, call; 34, expression_statement; 35, expression_statement; 36, if_statement; 37, expression_statement; 38, identifier:to_int; 39, argument_list; 40, call; 41, identifier:list; 42, argument_list; 43, attribute; 44, argument_list; 45, assignment; 46, assignment; 47, boolean_operator; 48, block; 49, call; 50, identifier:slot; 51, identifier:list; 52, argument_list; 53, identifier:self; 54, identifier:getLayout; 55, identifier:layout_slot; 56, call; 57, identifier:uid; 58, subscript; 59, comparison_operator:layout_slot != slot; 60, not_operator; 61, continue_statement; 62, attribute; 63, argument_list; 64, identifier:to_int; 65, argument_list; 66, identifier:pos; 67, string; 68, identifier:layout_slot; 69, identifier:slot; 70, identifier:uid; 71, identifier:analyses; 72, identifier:append; 73, call; 74, subscript; 75, string_content:analysis_uid; 76, attribute; 77, argument_list; 78, identifier:pos; 79, string; 80, identifier:api; 81, identifier:get_object_by_uid; 82, identifier:uid; 83, string_content:position
code: def get_analyses_at(self, slot):
          """Returns the list of analyses assigned to the slot passed in, sorted by
          the positions they have within the slot.
  
          :param slot: the slot where the analyses are located
          :type slot: int
          :return: a list of analyses
          """
  
          # ensure we have an integer
          slot = to_int(slot)
  
          if slot < 1:
              return list()
  
          analyses = list()
          layout = self.getLayout()
  
          for pos in layout:
              layout_slot = to_int(pos['position'])
              uid = pos['analysis_uid']
              if layout_slot != slot or not uid:
                  continue
              analyses.append(api.get_object_by_uid(uid))
  
          return analyses