code: def get_hf_configs(hf_config):
      num_layers = getattr(
          hf_config,
          "num_hidden_layers",
          getattr(hf_config, "n_layer", None),
      )
      hidden_size = getattr(
          hf_config, "hidden_size", getattr(hf_config, "n_embd", None)
      )
      vocab_size = getattr(hf_config, "vocab_size", None)
      assert all(
          (num_layers, hidden_size, vocab_size)
      ), "Could not determine number of layers, hidden size, and vocab size of the model"
  
      return num_layers, hidden_size, vocab_size
  
imports: import torch
label_desc: Use image node_id 4 for calling a global function with example usage: get_hf_configs(hf_config) and returns: num_layers,  hidden_size,  vocab_size