def maybe_ref(ref):
 if (not isinstance(ref, str)):
  return ref
 return ref_to_obj(ref)

def maybe_ref ( ref ) : if ( not isinstance ( ref , str ) ) : return ref return ref_to_obj ( ref )
returns the object that the given reference points to .