code: def reflect(x, low2, high2):
      min = low2 / 2
      span = (high2 - low2) / 2
      x = ivy.abs(x - min)
      frac_in = ivy.abs(x / span)
      extra = (frac_in - ivy.floor(frac_in)) * ivy.abs(span)
      flips = ivy.floor(x / span)
      x[flips % 2 == 0] = (extra + min)[flips % 2 == 0]
      x[flips % 2 != 0] = (span - extra + min)[flips % 2 != 0]
      return x
  
file_path: ivy/ivy/functional/frontends/torch/nn/functional/vision_functions.py
imports: import ivy
  from ivy 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 12 for calling a global function with example usage: reflect(x, low2, high2) and returns: x