human
Write me a the Python code you requested given the following:
Complete the below
def importer(test):

    ''''Uses Mock galaxy for testing or real galaxy for production
    @type test: bool
    @param test: True when being run from a test'
    '''
assistant
#Here is the Python code you requested.
    global JobDestination
    global JobMappingException
    if test:
        class JobDestionation(object, ):
            def __init__(self, *kwd):
                self.id = kwd.get('id')
                self.nativeSpec = kwd.get('params')['nativeSpecification']
                self.runner = kwd.get('runner')
        from galaxy.jobs.mapper import JobMappingException
    else:
        from galaxy.jobs import JobDestination
        from galaxy.jobs.mapper import JobMappingException