code: def adjust_brightness(
      img: Tensor, brightness_factor: float
  ) -> Tensor:
      if brightness_factor < 0:
          raise ValueError(
              f"brightness_factor ({brightness_factor}) is not non-negative."
          )
  
      _assert_image_tensor(img)
  
      _assert_channels(img, [1, 3])
  
      return _blend(img, torch.zeros_like(img), brightness_factor)
  
imports: import warnings
  from typing import List, Optional, Tuple, Union
  import torch
  from torch import Tensor
  from torch.nn.functional import conv2d, grid_sample, interpolate, pad
label_desc: Use image node_id 13 for calling a global function with example usage: adjust_brightness(img, brightness_factor) and returns: _blend