code: def _get_embeddings(model, layer):
      layer = model[0].encoder if layer == None else layer
      return layer.weight
  
imports: from __future__ import annotations
  from ..basics import *
  import tensorboard
  from torch.utils.tensorboard import SummaryWriter
  from .fp16 import ModelToHalf
  from .hook import hook_output
  from ..text.all import LMLearner, TextLearner
  from ..vision.data import *
  from ..vision.core import TensorPoint, TensorBBox
label_desc: Use image node_id 3 for calling a global function with example usage: _get_embeddings(model, layer) and returns: layer