code: def __lt__(self, other: object) -> bool:
      if not isinstance(other, ShardedTest):
          raise NotImplementedError
  
      # This is how the list was implicity sorted when it was a NamedTuple
      if self.name != other.name:
          return self.name < other.name
      if self.shard != other.shard:
          return self.shard < other.shard
      if self.num_shards != other.num_shards:
          return self.num_shards < other.num_shards
  
      # None is the smallest value
      if self.time is None:
          return True
      if other.time is None:
          return False
      return self.time < other.time
  
imports: from copy import copy
  from functools import total_ordering
  from typing import Iterable, List, Optional, Set, Tuple, Union
label_desc: Use image node_id 5 for calling the ShardedTest obj's underlying member method code with example usage: obj.__lt__(other) and returns: unknown, unknown, unknown, unknown, True, False