code: def _get_mmf_config(
      self, max_updates, max_epochs, max_grad_l2_norm, clip_norm_mode
  ):
      config = {
          "training": {
              "max_updates": max_updates,
              "max_epochs": max_epochs,
              "clip_gradients": True,
              "max_grad_l2_norm": max_grad_l2_norm,
              "clip_norm_mode": clip_norm_mode,
          }
      }
      return get_config_with_defaults(config)
  
file_path: mmf/tests/trainers/lightning/test_grad_clipping.py
imports: import unittest
  from unittest.mock import MagicMock, patch
  import torch
  from mmf.utils.general import clip_gradients
  from pytorch_lightning.callbacks.base import Callback
  from tests.trainers.test_utils import get_config_with_defaults, get_lightning_trainer, get_mmf_trainer
label_desc: Use image node_id 6 for calling the TestLightningTrainerGradClipping obj's underlying member method code with example usage: obj._get_mmf_config(max_updates, max_epochs, max_grad_l2_norm, clip_norm_mode) and returns: get_config_with_defaults