code: def fmax(input, other, *, out=None):
      input, other = torch_frontend.promote_types_of_torch_inputs(
          input, other
      )
      return ivy.where(
          ivy.bitwise_or(ivy.greater(input, other), ivy.isnan(other)),
          input,
          other,
          out=out,
      )
  
imports: import ivy
  import ivy.functional.frontends.torch
  from ivy.func_wrapper import with_unsupported_dtypes
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
  from collections import namedtuple
label_desc: Use image node_id 7 for calling a global function with example usage: fmax(input, other) and returns: ivy