qcodes/dataset/descriptions/versioning/serialization.py
def to_dict_as_version(desc: current.RunDescriber,
                       version: int) -> RunDescriberDicts:
    """
    Convert the given RunDescriber into a dictionary that represents a
    RunDescriber of the given version
    """
    input_version = desc.version
    input_dict = desc._to_dict()
    output_dict = _converters[(input_version, version)](input_dict)
    return output_dict

    Convert the given RunDescriber into a dictionary that represents a
    RunDescriber of the given version
    
Convert the given RunDescriber into a dictionary that represents a
RunDescriber of the given version
Convert the given RunDescriber into a dictionary that represents a RunDescriber of the given version
def to_dict_as_version(desc: current.RunDescriber,
                       version: int) -> RunDescriberDicts:
    input_version = desc.version
    input_dict = desc._to_dict()
    output_dict = _converters[(input_version, version)](input_dict)
    return output_dict
def to_dict_as_version ( desc : current . RunDescriber , version : int ) -> RunDescriberDicts : input_version = desc . version input_dict = desc . _to_dict ( ) output_dict = _converters [ ( input_version , version ) ] ( input_dict ) return output_dict
Convert the given RunDescriber into a dictionary that represents a
RunDescriber of the given version
Convert the given RunDescriber into a dictionary that represents a RunDescriber of the given version
"""
    Convert the given RunDescriber into a dictionary that represents a
    RunDescriber of the given version
    """
desc
current.RunDescriber
version
int