code: def create_default_pinhole_camera(height, width, device, dtype):
      intrinsics = torch.eye(4, device=device, dtype=dtype)
      intrinsics[0, -1] = width / 2.0  # cx
      intrinsics[1, -1] = height / 2.0  # cy
      return PinholeCamera(
          intrinsics=intrinsics[None],
          extrinsics=torch.eye(4, device=device, dtype=dtype)[None],
          height=torch.tensor([height], device=device, dtype=dtype),
          width=torch.tensor([width], device=device, dtype=dtype),
      )
  
file_path: kornia/test/nerf/test_nerf_model.py
imports: import pytest
  import torch
  from kornia.geometry.camera import PinholeCamera
  from kornia.nerf.nerf_model import MLP, NerfModel, NerfModelRenderer
label_desc: Use image node_id 2 for calling a global function with example usage: create_default_pinhole_camera(height, width, device, dtype) and returns: PinholeCamera