code: def test_style_transfer_task():
      model = StyleTransfer(
          backbone="vgg11",
          content_layer="relu1_2",
          content_weight=10,
          style_layers="relu1_2",
          style_weight=11,
      )
      assert (
          model.perceptual_loss.content_loss.encoder.layer == "relu1_2"
      )
      assert model.perceptual_loss.content_loss.score_weight == 10
      assert "relu1_2" in [
          n for n, m in model.perceptual_loss.style_loss.named_modules()
      ]
      assert model.perceptual_loss.style_loss.score_weight == 11
  
file_path: lightning-flash/tests/image/style_transfer/test_model.py
imports: from typing import Any
  from urllib.error import URLError
  import pytest
  import torch
  from flash.core.data.io.input import DataKeys
  from flash.core.utilities.imports import _TOPIC_IMAGE_AVAILABLE
  from flash.image.style_transfer import StyleTransfer
  from torch import Tensor
  from tests.helpers.task_tester import TaskTester
label_desc: Use image node_id 1 for calling a global function with example usage: test_style_transfer_task() without return types