code: def _permute_channels_image_pil(
      image: PIL.Image.Image, permutation: List[int]
  ) -> PIL.Image:
      return to_pil_image(
          permute_channels_image(
              pil_to_tensor(image), permutation=permutation
          )
      )
  
imports: from typing import List
  import PIL.Image
  import torch
  from torch.nn.functional import conv2d
  from torchvision import tv_tensors
  from torchvision.transforms import _functional_pil
  from torchvision.transforms._functional_tensor import _max_value
  from torchvision.utils import _log_api_usage_once
  from ._misc import _num_value_bits, to_dtype_image
  from ._type_conversion import pil_to_tensor, to_pil_image
  from ._utils import _get_kernel, _register_kernel_internal
label_desc: Use image node_id 44 for calling a global function with example usage: _permute_channels_image_pil(image, permutation) and returns: to_pil_image