docstr: Reshape the location tensor to have dimensions
  compatible with the points which can either be of
  shape (P, 3) or (N, H, W, K, 3).
docstr_tok: ["Reshape","the","location","tensor","to","have","dimensions","compatible","with","the","points","which","can","either","be","of","shape","(","P",",","3",")","or","(","N",",","H",",","W",",","K",",","3",")","."]
code: def reshape_location(self, points) -> torch.Tensor:
      """
      Reshape the location tensor to have dimensions
      compatible with the points which can either be of
      shape (P, 3) or (N, H, W, K, 3).
      """
      if self.location.ndim == points.ndim:
          return self.location
      return self.location[:, None, None, None, :]
  
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 the PointLights obj's underlying member method code with example usage: obj.reshape_location(points) and returns: self, self