code: def test_input_tileable(setup):
      def f(t, x):
          return (t * x).sum().to_numpy()
  
      rs = np.random.RandomState(0)
      raw = rs.rand(5, 4)
  
      t1 = mt.tensor(raw, chunk_size=3)
      t2 = t1.sum(axis=0)
      s = spawn(f, args=(t2, 3))
  
      result = s.execute().fetch()
      expected = (raw.sum(axis=0) * 3).sum()
      assert pytest.approx(result) == expected
  
      df1 = md.DataFrame(raw, chunk_size=3)
      df1.execute()
      df2 = shuffle(df1)
      df2.execute()
  
      def f2(input_df):
          bonus = input_df.iloc[:, 0].fetch().sum()
          return input_df.sum().to_pandas() + bonus
  
      for df in [df1, df2]:
          s = spawn(f2, args=(df,))
  
          result = s.execute().fetch()
          expected = pd.DataFrame(raw).sum() + raw[:, 0].sum()
          pd.testing.assert_series_equal(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 6 for calling a global function with example usage: test_input_tileable(setup) and returns: unknown, unknown