code: def test_gather_non_contigous(state):
      # Create a non-contiguous tensor
      tensor = torch.arange(12).view(4, 3).t().to(state.device)
      assert not tensor.is_contiguous()
      # Shouldn't error out
      _ = gather(tensor)
  
file_path: accelerate/src/accelerate/test_utils/scripts/test_ops.py
imports: import torch
  from accelerate import PartialState
  from accelerate.test_utils.testing import assert_exception
  from accelerate.utils.dataclasses import DistributedType
  from accelerate.utils.operations import DistributedOperationException, broadcast, gather, gather_object, pad_across_processes, reduce
label_desc: Use image node_id 4 for calling a global function with example usage: test_gather_non_contigous(state) without return types