(json_rep)
return isinstance(json_rep, list) and (
        "container=oci" in json_rep[0]["Config"]["Env"]
        or "container=podman" in json_rep[0]["Config"]["Env"]
    )
Check if the inspected file is in a format from podman.
Check if the inspected file is in a format from podman.
Check if the inspected file is in a format from podman .
def json_is_podman_format(json_rep):
    """Check if the inspected file is in a format from podman."""
    return isinstance(json_rep, list) and (
        "container=oci" in json_rep[0]["Config"]["Env"]
        or "container=podman" in json_rep[0]["Config"]["Env"]
    )
def json_is_podman_format ( json_rep ) : return isinstance ( json_rep , list ) and ( "container=oci" in json_rep [ 0 ] [ "Config" ] [ "Env" ] or "container=podman" in json_rep [ 0 ] [ "Config" ] [ "Env" ] )