code: def rank(input):
      return ivy.get_num_dims(input)
  
file_path: ivy/ivy/functional/frontends/paddle/attribute.py
imports: import ivy
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 5 for calling a global function with example usage: rank(input) and returns: ivy