code: def register_resource_evaluator(
      evaluator_cls: Type["ResourceEvaluator"],
  ):
      _name_to_resource_evaluator[evaluator_cls.name] = evaluator_cls
      return evaluator_cls
  
file_path: mars/mars/services/task/execution/mars/resource.py
imports: from abc import ABC, abstractmethod
  from typing import Dict, Type, Any
  from .....resource import Resource
label_desc: Use image node_id 1 for calling a global function with example usage: register_resource_evaluator(evaluator_cls) and returns: evaluator_cls