code: def info(self) -> InfoResponse:
      if self.requires_padding and self.sliding_window is not None:
          raise NotImplementedError(
              "sliding_window is not implemented with padding"
          )
  
      return InfoResponse(
          requires_padding=self.requires_padding,
          dtype=str(self.dtype),
          device_type=self.device.type,
          window_size=self.sliding_window,
          speculate=self.speculate,
      )
  
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 2 for calling the Model obj's underlying member method code with example usage: obj.info() and returns: InfoResponse