def METHOD_NAME(repository_dir):
    with repository_dir.as_cwd():
        new_tag_cmd(Namespace(tag_name='Test'))
        new_workflow_cmd(Namespace(name='Test', class_name=None, short_name=None))
        actor_path = new_actor_cmd(Namespace(
            actor_name='TestActor',
            tag=['TestTag', 'TestWorkflowTag'],
            consumes=[],
            produces=[],
        ))
        type(repository_dir)(actor_path).join('tests', 'test_this_actor.py').write('print("I am a test")')
        type(repository_dir)(actor_path).mkdir('libraries').mkdir('lib').join('__init__.py').write(
            '''from subprocess import call