code: def test_numpy_chisquare(
      dtypes,
      df,
      size,
      frontend,
      test_flags,
      fn_tree,
      backend_fw,
      on_device,
  ):
      # make sure `size` is something `df` can be broadcast to
      if (
          hasattr(df, "__len__")
          and size is not None
          and (len(size) == 0 or size[-1] != len(df))
      ):
          size = (*size, len(df))
      helpers.test_frontend_function(
          input_dtypes=dtypes,
          backend_to_test=backend_fw,
          frontend=frontend,
          test_flags=test_flags,
          fn_tree=fn_tree,
          on_device=on_device,
          test_values=False,
          df=df,
          size=size,
      )
  
imports: from hypothesis import strategies, assume
  import numpy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
label_desc: Use image node_id 3 for calling a global function with example usage: test_numpy_chisquare(dtypes, df, size, frontend, test_flags, fn_tree, backend_fw, on_device) without return types