qcodes/dataset/descriptions/versioning/serialization.py
def to_yaml_for_storage(desc: current.RunDescriber) -> str:
    """
    Serialize the given RunDescriber to YAML as a RunDescriber of the
    version for storage
    """
    yaml = YAML()
    with io.StringIO() as stream:
        yaml.dump(to_dict_for_storage(desc), stream=stream)
        output = stream.getvalue()

    return output

    Serialize the given RunDescriber to YAML as a RunDescriber of the
    version for storage
    
Serialize the given RunDescriber to YAML as a RunDescriber of the
version for storage
Serialize the given RunDescriber to YAML as a RunDescriber of the version for storage
def to_yaml_for_storage(desc: current.RunDescriber) -> str:
    yaml = YAML()
    with io.StringIO() as stream:
        yaml.dump(to_dict_for_storage(desc), stream=stream)
        output = stream.getvalue()
    return output
def to_yaml_for_storage ( desc : current . RunDescriber ) -> str : yaml = YAML ( ) with io . StringIO ( ) as stream : yaml . dump ( to_dict_for_storage ( desc ) , stream = stream ) output = stream . getvalue ( ) return output
Serialize the given RunDescriber to YAML as a RunDescriber of the
version for storage
Serialize the given RunDescriber to YAML as a RunDescriber of the version for storage
"""
    Serialize the given RunDescriber to YAML as a RunDescriber of the
    version for storage
    """
desc
current.RunDescriber