code: def bincount(x, weights=None, minlength=0):
      return ivy.bincount(x, weights=weights, minlength=minlength)
  
file_path: ivy/ivy/functional/frontends/torch/utilities.py
imports: import ivy
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
  from ivy.func_wrapper import with_supported_dtypes
  import inspect
label_desc: Use image node_id 2 for calling a global function with example usage: bincount(x, weights, minlength) and returns: ivy