code: def test_lstm_invalid_dtype(
      device, c_shape, x_shape, in_dtypes, out_dtype, cover_all
  ):
      with pytest.raises(chainerx.DtypeError):
          chainerx.lstm(
              *_create_lstm_args(
                  chainerx, device, c_shape, x_shape, in_dtypes
              )
          )
  
imports: import unittest
  import chainer
  from chainer import functions
  import numpy
  import pytest
  import chainerx
  from chainerx_tests import array_utils
  from chainerx_tests import dtype_utils
  from chainerx_tests import op_utils
label_desc: Use image node_id 7 for calling a global function with example usage: test_lstm_invalid_dtype(device, c_shape, x_shape, in_dtypes, out_dtype, cover_all) without return types