code: def __new__(
      cls,
      cpu: float,
      gpu: float,
      memory: float = 0,
      object_store_memory: float = 0.0,
      extra_cpu: float = 0.0,
      extra_gpu: float = 0.0,
      extra_memory: float = 0.0,
      extra_object_store_memory: float = 0.0,
      custom_resources: Optional[dict] = None,
      extra_custom_resources: Optional[dict] = None,
      has_placement_group: bool = False,
  ):
      raise DeprecationWarning(
          "tune.Resources is depracted. Use tune.PlacementGroupFactory instead."
      )
  
file_path: ray/python/ray/tune/resources.py
imports: from collections import namedtuple
  import logging
  import json
  from typing import Optional
  from ray.tune.execution.placement_groups import resource_dict_to_pg_factory, PlacementGroupFactory
  from ray.tune.utils.resource_updater import _Resources
  from ray.util.annotations import Deprecated, DeveloperAPI
  from ray.tune import TuneError
label_desc: Use image node_id 1 for calling the Resources obj's underlying member method code with example usage: obj.__new__(cls, cpu, gpu, memory, object_store_memory, extra_cpu, extra_gpu, extra_memory, extra_object_store_memory, custom_resources, extra_custom_resources, has_placement_group) without return types