code: def egypt_harmonic(r):
      # assumes r is Rational
      rv = []
      d = S.One
      acc = S.Zero
      while acc + 1 / d <= r:
          acc += 1 / d
          rv.append(d)
          d += 1
      return (rv, r - acc)
  
file_path: sympy/sympy/ntheory/egyptian_fraction.py
imports: from sympy.core.containers import Tuple
  from sympy.core.numbers import Integer, Rational
  from sympy.core.singleton import S
  import sympy.polys
  from math import gcd
label_desc: Use image node_id 6 for calling a global function with example usage: egypt_harmonic(r) and returns: rv,  unknown