code: def from_config(cls, config):
      return cls(**config)
  
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow.keras.layers import Dense
  import torch
  import torch.nn
  from alibi_detect.cd import LearnedKernelDrift
  from alibi_detect.cd.pytorch.learned_kernel import LearnedKernelDriftTorch
  from alibi_detect.cd.tensorflow.learned_kernel import LearnedKernelDriftTF
  from alibi_detect.utils.frameworks import has_keops
label_desc: Use image node_id 4 for calling the MyKernelTF obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls