class_docstr: Dataclass representing a bazel py_test rule (BUILD entry).
  
  Only the subset of fields we care about is included.
class_docstr_tok: ["Dataclass","representing","a","bazel","py_test","rule","(","BUILD","entry",")",".","Only","the","subset","of","fields","we","care","about","is","included","."]
code: def actual_timeout_s(self) -> float:
      # See https://bazel.build/reference/be/common-definitions
      # Timeout takes priority over size
      if self.timeout == "short":
          return 60
      if self.timeout == "moderate":
          return 60 * 5
      if self.timeout == "long":
          return 60 * 15
      if self.timeout == "eternal":
          return 60 * 60
      if self.size == "small":
          return 60
      if self.size == "medium":
          return 60 * 5
      if self.size == "large":
          return 60 * 15
      if self.size == "enormous":
          return 60 * 60
  
imports: from collections import defaultdict
  from dataclasses import dataclass
  from typing import Iterable, List, Optional, Set, Tuple
  import argparse
  import os
  import re
  import shlex
  import subprocess
  import sys
  import xml.etree.ElementTree
label_desc: Use image node_id 2 for calling the BazelRule obj's underlying member method code with example usage: obj.actual_timeout_s() and returns: int, unknown, unknown, unknown, int, unknown, unknown, unknown