code: def test_ajdc_fit_variable_input(rndstate):
      n_subjects, n_cond, n_chan, n_times = 2, 2, 3, 256
      X = rndstate.randn(n_subjects, n_cond, n_chan, n_times)
      ajdc = AJDC(dim_red={"expl_var": 0.9})
      # 3 subjects, same # conditions and channels, different # of times
      X = [
          rndstate.randn(
              n_cond, n_chan, n_times + rndstate.randint(500)
          )
          for _ in range(3)
      ]
      ajdc.fit(X)
  
      # 2 subjects, 2 conditions, same # channels, different # of times
      X = [
          [
              rndstate.randn(n_chan, n_times + rndstate.randint(500))
              for _ in range(2)
          ],
          [
              rndstate.randn(n_chan, n_times + rndstate.randint(500))
              for _ in range(2)
          ],
      ]
      ajdc.fit(X)
  
imports: from conftest import get_metrics
  import pytest
  import numpy
  from numpy.testing import assert_array_equal
  from pyriemann.spatialfilters import Xdawn, CSP, SPoC, BilinearFilter, AJDC
label_desc: Use image node_id 16 for calling a global function with example usage: test_ajdc_fit_variable_input(rndstate) without return types