code: def identity_matrix(batch_size, device, dtype):
      r"""Create a batched homogeneous identity matrix."""
      return torch.eye(4, device=device, dtype=dtype).repeat(
          batch_size, 1, 1
      )
  
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  import kornia.geometry.linalg
  import kornia.testing
  from kornia.testing import BaseTester, assert_close
label_desc: Use image node_id 1 for calling a global function with example usage: identity_matrix(batch_size, device, dtype) and returns: torch