nncf/experimental/tensorflow/graph/argprovider.py
def replace_value_by_index(xs: Tuple[Any, ...], pos: int, value: Any) -> Tuple[Any, ...]:
    """
    Return a new instance of the tuple replacing the specified
    position with the new value.

    :param xs: A tuple.
    :param pos: Zero-based index of the item which should be replaced.
    :param value: New value.
    """
    return tuple(value if idx == pos else elem for idx, elem in enumerate(xs))

    Return a new instance of the tuple replacing the specified
    position with the new value.

    :param xs: A tuple.
    :param pos: Zero-based index of the item which should be replaced.
    :param value: New value.
    
Return a new instance of the tuple replacing the specified
position with the new value.
Return a new instance of the tuple replacing the specified position with the new value .
def replace_value_by_index(xs: Tuple[Any, ...], pos: int, value: Any) -> Tuple[Any, ...]:
    return tuple(value if idx == pos else elem for idx, elem in enumerate(xs))
def replace_value_by_index ( xs : Tuple [ Any , ... ] , pos : int , value : Any ) -> Tuple [ Any , ... ] : return tuple ( value if idx == pos else elem for idx , elem in enumerate ( xs ) )
Return a new instance of the tuple replacing the specified
position with the new value.
Return a new instance of the tuple replacing the specified position with the new value .
"""
    Return a new instance of the tuple replacing the specified
    position with the new value.

    :param xs: A tuple.
    :param pos: Zero-based index of the item which should be replaced.
    :param value: New value.
    """
xs
Tuple[Any, ...]
None
pos
int
Zero-based index of the item which should be replaced.
Zero - based index of the item which should be replaced .
value
Any
None