code: def from_params(cls, params: Dict[str, Any]) -> "Embeddings":
      # legacy pickle-like loading for image embeddings, as implementation details are not obvious
      embedding = cls.__new__(cls)
      embedding.__setstate__(params)
      return embedding
  
imports: import logging
  from typing import Any, Dict, List, Optional
  import torch
  import torch.nn.functional
  from torch.nn import AdaptiveAvgPool2d, AdaptiveMaxPool2d, Conv2d, Dropout2d, Linear, MaxPool2d, Parameter, ReLU, Sequential, TransformerEncoder, TransformerEncoderLayer
  import flair
  from flair.data import Image
  from flair.embeddings.base import Embeddings, register_embeddings
label_desc: Use image node_id 3 for calling the ImageEmbeddings obj's underlying member method code with example usage: obj.from_params(cls, params) and returns: embedding