code: def _get_background_color(
      blend_params: BlendParams, device: Device, dtype=torch.float32
  ) -> torch.Tensor:
      background_color_ = blend_params.background_color
      if isinstance(background_color_, torch.Tensor):
          background_color = background_color_.to(device)
      else:
          background_color = torch.tensor(
              background_color_, dtype=dtype, device=device
          )
      return background_color
  
file_path: pytorch3d/pytorch3d/renderer/blending.py
imports: from typing import NamedTuple, Sequence, Union
  import torch
  from pytorch3d import _C
  from pytorch3d.common.datatypes import Device
label_desc: Use image node_id 1 for calling a global function with example usage: _get_background_color(blend_params, device, dtype) and returns: background_color