code: def _register_resolvers(self):
      OmegaConf.clear_resolvers()
      # Device count resolver
      device_count = max(1, torch.cuda.device_count())
      OmegaConf.register_new_resolver(
          "device_count", lambda: device_count
      )
      OmegaConf.register_new_resolver(
          "resolve_cache_dir", resolve_cache_dir
      )
      OmegaConf.register_new_resolver("resolve_dir", resolve_dir)
  
imports: import collections
  import json
  import logging
  import os
  import warnings
  from ast import literal_eval
  from typing import List
  import torch
  from mmf.common.registry import registry
  from mmf.utils.env import import_user_module
  from mmf.utils.file_io import PathManager
  from mmf.utils.general import get_absolute_path, get_mmf_root
  from omegaconf import DictConfig, errors, OmegaConf
label_desc: Use image node_id 12 for calling the Configuration obj's underlying member method code with example usage: obj._register_resolvers() without return types