class_docstr: Module for providing token embeddings from a pretrained model.
class_docstr_tok: ["Module","for","providing","token","embeddings","from","a","pretrained","model","."]
code: def from_config(
      cls, config: ContextualTokenEmbeddingConfig, *args, **kwargs
  ):
      return cls(config.embed_dim, downsample_dim=config.downsample_dim)
  
file_path: pytext/pytext/models/embeddings/contextual_token_embedding.py
imports: from typing import Optional
  import torch
  from pytext.config.field_config import ContextualTokenEmbeddingConfig
  from pytext.models.seq_models.base import PlaceholderIdentity
  from torch.nn import Linear
  from .embedding_base import EmbeddingBase
label_desc: Use image node_id 1 for calling the ContextualTokenEmbedding obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls