import json


def _my_service_function(meth, param1, param2):
    """This is an example function.

    :param param1: Input Genome
    :type param1: kbtypes.Genome
    :ui_name param1: Genome ID (what the user sees)
    :param param2: Some text
    :type param2: kbtypes.Unicode
    :ui_name param2: Text
    :return: Workspace object ID
    :rtype: kbtypes.Unicode
    :output_widget: kbaseExampleWidget
    """
    meth.stages = 1  # for reporting progress
    result = {}

    meth.advance('Running my method')
    result['output'] = 'My output string'

    return json.dumps(result)