code: def resolve_model_data_config(
      model,
      args=None,
      pretrained_cfg=None,
      use_test_size=False,
      verbose=False,
  ):
      """Resolve Model Data Config
      This is equivalent to resolve_data_config() but with arguments re-ordered to put model first.
  
      Args:
          model (nn.Module): the model instance
          args (dict): command line arguments / configuration in dict form (overrides pretrained_cfg)
          pretrained_cfg (dict): pretrained model config (overrides pretrained_cfg attached to model)
          use_test_size (bool): use the test time input resolution (if one exists) instead of default train resolution
          verbose (bool): enable extra logging of resolved values
  
      Returns:
          dictionary of config
      """
      return resolve_data_config(
          args=args,
          pretrained_cfg=pretrained_cfg,
          model=model,
          use_test_size=use_test_size,
          verbose=verbose,
      )
  
imports: import logging
  from .constants import *
label_desc: Use image node_id 2 for calling a global function with example usage: resolve_model_data_config(model, args, pretrained_cfg, use_test_size, verbose) and returns: resolve_data_config