code: def check_initialized(self):
      uninitialized_parameters = []
      for n, p in self.model.named_parameters():
          if p.data.device == torch.device("meta"):
              uninitialized_parameters.append(n)
      if uninitialized_parameters:
          raise RuntimeError(
              f"found uninitialized parameters in model {self.__class__.__name__}: {uninitialized_parameters}"
          )
  
file_path: text-generation-inference/server/text_generation_server/models/model.py
imports: import inspect
  import torch
  from abc import ABC, abstractmethod
  from typing import List, Tuple, Optional, TypeVar, Type
  from transformers import PreTrainedTokenizerBase, PretrainedConfig
  from text_generation_server.models.types import Batch, Generation
  from text_generation_server.utils.speculate import get_speculate
  from text_generation_server.pb.generate_pb2 import InfoResponse
label_desc: Use image node_id 7 for calling the Model obj's underlying member method code with example usage: obj.check_initialized() without return types