code: def test_numpy_trim_zeros(
      frontend,
      on_device,
      *,
      dtype_and_x,
      trim,
      fn_tree,
      test_flags,
      backend_fw,
  ):
      input_dtypes, x = dtype_and_x
      if ivy.current_backend_str() == "paddle":
          assume(input_dtypes[0] not in ["float16"])
      helpers.test_frontend_function(
          input_dtypes=input_dtypes,
          backend_to_test=backend_fw,
          frontend=frontend,
          test_flags=test_flags,
          fn_tree=fn_tree,
          on_device=on_device,
          filt=x[0],
          trim=trim,
      )
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_numpy/test_manipulation_routines/test_adding_and_removing_elements.py
imports: from hypothesis import assume
  import ivy
  from hypothesis import strategies
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
label_desc: Use image node_id 2 for calling a global function with example usage: test_numpy_trim_zeros(frontend, on_device) without return types