code: def unpack_proto_query_kwargs(query_kwargs):
      def extract_proto_value(proto_value):
          field_name = proto_value.WhichOneof("oneof_values")
  
          if field_name == "mvalue":
              return {
                  k: extract_proto_value(v)
                  for k, v in proto_value.mvalue.values.items()
              }
          else:
              return getattr(proto_value, field_name)
  
      return {
          k: extract_proto_value(v) for k, v in query_kwargs.items()
      }
  
imports: import importlib
  import pickle
  import os
  import time
  import deepspeed
  from dataclasses import dataclass
  from typing import List, TYPE_CHECKING
  from datetime import timedelta
  from huggingface_hub import HfApi
  from transformers import AutoConfig
  import mii
  from mii.constants import MII_CACHE_PATH, MII_CACHE_PATH_DEFAULT, REQUIRED_KEYS_PER_TASK, MII_HF_CACHE_EXPIRATION, MII_HF_CACHE_EXPIRATION_DEFAULT
  from mii.logging import logger
  from mii.score.generate import generated_score_path
label_desc: Use image node_id 8 for calling a global function with example usage: unpack_proto_query_kwargs(query_kwargs) and returns: unknown, unknown, getattr