docstr: Tests that all NeuralType Elements are compilable by TorchScript (and be used in modules/functions).
code: def test_element_compilable(
      self, neural_type: Type[nelements.ElementType]
  ):
      """
      Tests that all NeuralType Elements are compilable by TorchScript (and be used in modules/functions).
      """
  
      @torch.jit.script
      def identity(x: torch.Tensor):
          if isinstance(neural_type(), nelements.VoidType):
              return x
          else:
              return x + 1
  
      _ = identity(torch.tensor(1.0))
  
imports: from inspect import isclass
  from typing import Any, Type
  import pytest
  import torch
  import torch.nn
  import nemo.core.neural_types.elements
  from nemo.core.classes import Exportable, NeuralModule, typecheck
  from nemo.core.classes.mixins import AdapterModuleMixin
  from nemo.core.neural_types import FloatType, NeuralType, VoidType
label_desc: Use image node_id 5 for calling the TestTorchJitCompatibility obj's underlying member method code with example usage: obj.test_element_compilable(neural_type) and returns: x, unknown