class_docstr: Test class for :class:`~kornia.geometry.camera.stereo.StereoCamera`
class_docstr_tok: ["Test","class","for",":","class",":","`","~kornia.geometry.camera.stereo.StereoCamera","`"]
code: def _create_disparity_tensor(
      batch_size, height, width, max_disparity, device, dtype
  ):
      size = (batch_size, height, width, 1)
      return torch.randint(
          size=size,
          low=0,
          high=max_disparity,
          device=device,
          dtype=dtype,
      )
  
imports: import pytest
  import torch
  from kornia.geometry.camera import StereoCamera
  from kornia.testing import assert_close
label_desc: Use image node_id 1 for calling the TestStereoCamera obj's underlying member method code with example usage: obj._create_disparity_tensor(batch_size, height, width, max_disparity, device, dtype) and returns: torch