code: def model_from_params(params, args, foundation_cache=None):
      constituency_parser = Trainer.model_from_params(
          params["constituency"], args, foundation_cache
      )
      model = TreeEmbedding(constituency_parser, params["config"])
      model.load_state_dict(params["model"], strict=False)
      return model
  
file_path: stanza/stanza/models/constituency/tree_embedding.py
imports: import torch
  import torch.nn
  from stanza.models.constituency.trainer import Trainer
label_desc: Use image node_id 7 for calling the TreeEmbedding obj's underlying member method code with example usage: obj.model_from_params(params, args, foundation_cache) and returns: model