code: def numel(x, name=None):
      prod = ivy.prod(x.size, dtype=ivy.int64)
      try:
          length = len(x)
      except (ValueError, TypeError):
          length = 1  # if 0 dimensional tensor with 1 element
      return ivy.array(
          prod if prod > 0 else ivy.array(length, dtype=ivy.int64)
      )
  
file_path: ivy/ivy/functional/frontends/paddle/stat.py
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 4 for calling a global function with example usage: numel(x, name) and returns: ivy