
    Vhv                    R    d dl mZ 	 d dlmZ d dlmZ d Zy# e$ r	 d dlmZ Y w xY w)    )annotations)Mapping)	yaml_loadc                Z    t        |       }|si }t        |t              st        d      |S )a  
    Converts string YAML dictionary to a Python dictionary. This function may be monkeypatched to another implementation
    by some tools (eg the import sanity test).
    :param yaml_string_data: a bytes-ish YAML dictionary
    :param content_id: a unique ID representing the content to allow other implementations to cache the output
    :return: a Python dictionary representing the YAML dictionary content
    z9collection metadata must be an instance of Python Mapping)r   
isinstancer   
ValueError)yaml_string_data
content_idrouting_dicts      `/home/dcms/DCMS/lib/python3.12/site-packages/ansible/utils/collection_loader/_collection_meta.py_meta_yml_to_dictr      s3     -.LlG,TUU    N)	
__future__r   collections.abcr   ImportErrorcollections ansible.module_utils.common.yamlr   r    r   r   <module>r      s0    #$' 7  $#$s    &&