code: def test_validate_tt_rank(coef):
      tensor_shape = tuple(ivy.random.randint(5, 10, shape=(4,)))
      n_param_tensor = ivy.prod(tensor_shape)
  
      rank = ivy.TTTensor.validate_tt_rank(
          tensor_shape, coef, rounding="floor"
      )
      n_param = ivy.TTTensor._tt_n_param(tensor_shape, rank)
      np.testing.assert_(n_param <= n_param_tensor * coef)
  
      rank = ivy.TTTensor.validate_tt_rank(
          tensor_shape, coef, rounding="ceil"
      )
      n_param = ivy.TTTensor._tt_n_param(tensor_shape, rank)
      np.testing.assert_(n_param >= n_param_tensor * coef)
  
file_path: ivy/ivy_tests/test_ivy/test_misc/test_factorized_tensor/test_tt_tensor.py
imports: import ivy
  import numpy
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_validate_tt_rank(coef) without return types