##### SUMMARY

Move the remaining files needed by `ansible-test` into the `test/lib/ansible_test/` directory. This is required to implement: https://github.com/ansible/ansible/issues/59884

##### ISSUE TYPE

Feature Idea

##### COMPONENT NAME

ansible-test

"""Register the given payload callback."""
        self.payload_callbacks.append(callback)
def data_init():  
    """Initialize provider plugins."""
    provider_types = (
        'layout',
        'source',
    )
    for provider_type in provider_types:
        import_plugins('provider/%s' % provider_type)
    try:
        context = DataContext()
    except ProviderNotFoundForPath:
        options = [
            ' - an Ansible collection: {...}/ansible_collections/{namespace}/{collection}/',
        ]
        if not ANSIBLE_IS_INSTALLED:
            options.insert(0, ' - the Ansible source: %s/' % ANSIBLE_ROOT)
        raise ApplicationError('''The current working directory must be at or below:
%s
Current working directory: %s''' % ('\n'.join(options), os.getcwd()))
    return context
def data_context():  
    """Return the current data context."""
    try:
        return data_context.instance
    except AttributeError:
        data_context.instance = data_init()
        return data_context.instance