parameters: (obj, with_text=True, ref=None, pos=None)
docstring: Assumption here is that if obj is a Link, and ref and pos are not specified, then position 0 is the root ref.
      :param obj:
      :param ref:
      :param pos:
      :return:
docstring_summary: Assumption here is that if obj is a Link, and ref and pos are not specified, then position 0 is the root ref.
      :param obj:
      :param ref:
      :param pos:
      :return:
docstring_tokens: Assumption here is that if obj is a Link and ref and pos are not specified then position 0 is the root ref . : param obj : : param ref : : param pos : : return :
function: def format_object_for_client(obj, with_text=True, ref=None, pos=None):
      """
      Assumption here is that if obj is a Link, and ref and pos are not specified, then position 0 is the root ref.
      :param obj:
      :param ref:
      :param pos:
      :return:
      """
      if isinstance(obj, Note):
          return format_note_object_for_client(obj)
      elif isinstance(obj, Link):
          if not ref and not pos:
              ref = obj.refs[0]
              pos = 0
          return format_link_object_for_client(obj, with_text, ref, pos)
      else:
          raise InputError("{} not valid for format_object_for_client".format(obj.__class__.__name__))
function_tokens: def format_object_for_client ( obj , with_text = True , ref = None , pos = None ) : if isinstance ( obj , Note ) : return format_note_object_for_client ( obj ) elif isinstance ( obj , Link ) : if not ref and not pos : ref = obj . refs [ 0 ] pos = 0 return format_link_object_for_client ( obj , with_text , ref , pos ) else : raise InputError ( "{} not valid for format_object_for_client" . format ( obj . __class__ . __name__ ) )