code: def import_user_dir(self):
      # Try user_dir options in order of MMF configuration hierarchy
      # First try the default one, which can be set via environment as well
      user_dir = self._default_config.env.user_dir
  
      # Now, check user's config
      user_config_user_dir = self._user_config.get("env", {}).get(
          "user_dir", None
      )
  
      if user_config_user_dir:
          user_dir = user_config_user_dir
  
      # Finally, check opts
      opts_user_dir = self._opts_config.get("env", {}).get(
          "user_dir", None
      )
      if opts_user_dir:
          user_dir = opts_user_dir
  
      if user_dir:
          import_user_module(user_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 6 for calling the Configuration obj's underlying member method code with example usage: obj.import_user_dir() without return types