code: def adaptive_avg_pool2d(input, output_size):
      return ivy.adaptive_avg_pool2d(
          input, output_size, data_format="NCHW"
      )
  
file_path: ivy/ivy/functional/frontends/torch/nn/functional/pooling_functions.py
imports: from functools import reduce
  import ivy
  from ivy import with_unsupported_dtypes
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 2 for calling a global function with example usage: adaptive_avg_pool2d(input, output_size) and returns: ivy