code: def glu(input, dim=-1):
      a, b = ivy.split(input, num_or_size_splits=2, axis=dim)
      return ivy.multiply(a, ivy.sigmoid(b))
  
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 6 for calling a global function with example usage: glu(input, dim) and returns: ivy