code: def _validate_light_properties(obj) -> None:
      props = ("ambient_color", "diffuse_color", "specular_color")
      for n in props:
          t = getattr(obj, n)
          if t.shape[-1] != 3:
              msg = "Expected %s to have shape (N, 3); got %r"
              raise ValueError(msg % (n, t.shape))
  
imports: import torch
  import torch.nn.functional
  from ..common.datatypes import Device
  from .utils import convert_to_tensors_and_broadcast, TensorProperties
label_desc: Use image node_id 3 for calling a global function with example usage: _validate_light_properties(obj) without return types