code: def __lt__(self, other: "OrderedDeviceHardware") -> bool:
      # Use local rank as a tie breaker to ensure that we don't overload a single
      # host's DDR limit.
      return (
          self.device.perf.total,
          self.device.rank % self.local_world_size,
          self.device.rank,
      ) < (
          other.device.perf.total,
          other.device.rank % self.local_world_size,
          other.device.rank,
      )
  
imports: import copy
  import heapq
  import logging
  from dataclasses import dataclass
  from enum import Enum
  from typing import cast, Dict, List, Optional
  from torchrec.distributed.planner.perf_models import NoopPerfModel
  from torchrec.distributed.planner.types import DeviceHardware, PartitionByType, Partitioner, Perf, PerfModel, PlannerError, PlannerErrorType, ShardingOption, Storage, Topology
  from torchrec.distributed.planner.utils import bytes_to_gb, reset_shard_rank
  from torchrec.distributed.types import ShardingType
label_desc: Use image node_id 1 for calling the OrderedDeviceHardware obj's underlying member method code with example usage: obj.__lt__(other) and returns: unknown