code: def resources_to_json(*args, **kwargs):
      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 2 for calling a global function with example usage: resources_to_json() without return types