code: def test_activations_cuda(activation_name):
      act = instantiate_activation_block(activation_name)
      x = torch.randn(128).float().cuda()
      y = act(x)
      assert y.dtype == torch.float32
  
      act = instantiate_activation_block(activation_name)
      x = torch.randn(128).half().cuda()
      y = act(x)
      assert y.dtype == torch.float16
  
imports: import torch
  import pytest
  from pytorch_toolbelt.modules.activations import instantiate_activation_block
label_desc: Use image node_id 2 for calling a global function with example usage: test_activations_cuda(activation_name) without return types