def load(stream, fmt='lha'):
    """Load a parameter file in DSixTools SLHA-like format or its JSON or
    YAML representation."""
    if fmt == 'lha':
        return pylha.load(stream)
    elif fmt == 'json':
        if isinstance(stream, str):
            return json.loads(stream)
        else:
            return json.load(stream)
    elif fmt == 'yaml':
        return yaml.load(stream)
def load ( stream , fmt = 'lha' ) : if fmt == 'lha' : return pylha . load ( stream ) elif fmt == 'json' : if isinstance ( stream , str ) : return json . loads ( stream ) else : return json . load ( stream ) elif fmt == 'yaml' : return yaml . load ( stream )
Load a parameter file in DSixTools SLHA-like format or its JSON or
    YAML representation.