code: def create_one_camera(
      height, width, device: Device, dtype: torch.dtype
  ) -> PinholeCamera:
      fx = width
      fy = height
      cx = (width - 1.0) / 2.0
      cy = (height - 1.0) / 2.0
  
      tx = 0.0
      ty = 0.0
      tz = 1.0
  
      alpha = math.pi / 2.0
      beta = 0.0
      gamma = -math.pi / 2.0
  
      intrinsics = create_intrinsics(
          [fx], [fy], [cx], [cy], device=device, dtype=dtype
      )
      extrinsics = create_extrinsics_with_rotation(
          [alpha],
          [beta],
          [gamma],
          [tx],
          [ty],
          [tz],
          device=device,
          dtype=dtype,
      )
  
      return PinholeCamera(
          intrinsics,
          extrinsics,
          torch.tensor([height], device=device, dtype=dtype),
          torch.tensor([width], device=device, dtype=dtype),
      )
  
imports: import math
  import torch
  from kornia.core import Device
  from kornia.geometry.camera import PinholeCamera
  from kornia.nerf.samplers import RandomGridRaySampler, RandomRaySampler, UniformRaySampler, calc_ray_t_vals, cameras_for_ids, sample_lengths, sample_ray_points
  from kornia.testing import assert_close
label_desc: Use image node_id 4 for calling a global function with example usage: create_one_camera(height, width, device, dtype) and returns: PinholeCamera