code: def from_config(cls, cfg, input_shape):
      return {
          "in_channels": [i.channels for i in input_shape],
          "feat_strides": [i.stride for i in input_shape],
      }
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from ppdet.core.workspace import register, serializable
  from ppdet.modeling.ops import get_act_fn
  from ..shape_spec import ShapeSpec
  from ..backbones.csp_darknet import BaseConv
  from ..backbones.cspresnet import RepVggBlock
  from ppdet.modeling.transformers.detr_transformer import TransformerEncoder
  from ..initializer import xavier_uniform_, linear_init_
  from ..layers import MultiHeadAttention
  from paddle import ParamAttr
  from paddle.regularizer import L2Decay
label_desc: Use image node_id 5 for calling the HybridEncoder obj's underlying member method code with example usage: obj.from_config(cls, cfg, input_shape) and returns: dict