code: def OverrideToImplementCustomLogic(obj):
      """Users should override this in their sub-classes to implement custom logic.
  
      Used in Algorithm and Policy to tag methods that need overriding, e.g.
      `Policy.loss()`.
  
      .. testcode::
          :skipif: True
  
          from ray.rllib.policy.torch_policy import TorchPolicy
          @overrides(TorchPolicy)
          @OverrideToImplementCustomLogic
          def loss(self, ...):
              # implement custom loss function here ...
              # ... w/o calling the corresponding `super().loss()` method.
              ...
  
      """
      obj.__is_overriden__ = False
      return obj
  
file_path: ray/python/ray/rllib/utils/annotations.py
imports: from ray.rllib.utils.deprecation import Deprecated
  from ray.util.annotations import _mark_annotated
label_desc: Use image node_id 5 for calling a global function with example usage: OverrideToImplementCustomLogic(obj) and returns: obj