Is this function a good way of creating a copy of a layer with identical parameters?
`def _copy_layer(layer):
"""Create a copy of a layer with identical parameters.
The new layer will not share weights with the old one"""
return type(layer).from_config(layer.get_config())`