Shape the die mounting substrate comprising a recess for hosting the device the shape of the recess being other than a cuboid