code: def test_unknown_shape_inputs(setup):
      def f(t, x):
          assert all(not np.isnan(s) for s in t.shape)
          return (
              (t * x)
              .sum()
              .to_numpy(extra_config={"check_nsplits": False})
          )
  
      rs = np.random.RandomState(0)
      raw = rs.rand(5, 4)
  
      t1 = mt.tensor(raw, chunk_size=3)
      t2 = t1[t1 > 0]
      s = spawn(f, args=(t2, 3))
  
      result = s.execute().fetch()
      expected = (raw[raw > 0] * 3).sum()
      assert pytest.approx(result) == expected
  
imports: from collections import defaultdict
  import numpy
  import pandas
  import pytest
  from ...None import dataframe
  from ...None import get_context
  from ...None import oscar
  from ...None import tensor
  from ...core import tile
  from ...session import get_default_session
  from ...learn.utils import shuffle
  from ...lib.mmh3 import hash
  from ..None import spawn, ExecutableTuple
label_desc: Use image node_id 7 for calling a global function with example usage: test_unknown_shape_inputs(setup) and returns: unknown