code: def complex_strategy(
      draw,
      min_num_dims=0,
      max_num_dims=5,
      min_dim_size=1,
      max_dim_size=10,
  ):
      shape = draw(
          st.lists(
              helpers.ints(
                  min_value=min_dim_size, max_value=max_dim_size
              ),
              min_size=min_num_dims,
              max_size=max_num_dims,
          )
      )
      shape = list(shape)
      shape.append(2)
      return tuple(shape)
  
imports: import math
  import numpy
  from hypothesis import assume, strategies
  import hypothesis.extra.numpy
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
  from ivy_tests.test_ivy.test_functional.test_core.test_linalg import _get_dtype_value1_value2_axis_for_tensordot
label_desc: Use image node_id 4 for calling a global function with example usage: complex_strategy(draw, min_num_dims, max_num_dims, min_dim_size, max_dim_size) and returns: tuple