async def validate_device(device: typing.Optional[str] = None) -> typing.Optional[str]:
    """Translates the device string for internal use.
    
    This function only performs basic string translation and does not validate
    if the device is available as inference runs in a separate service.

    Args:
        device: Device string to translate (can be None)

    Returns:
        The device translated for internal use or None if no device was provided
    """
    if device is None:
        return None
        
    return api_utils.translate_api_device(validate_api_device_string(device))
Translates the device string for internal use.
    
    This function only performs basic string translation and does not validate
    if the device is available as inference runs in a separate service.

    Args:
        device: Device string to translate (can be None)

    Returns:
        The device translated for internal use or None if no device was provided
    
src/marqo/tensor_search/web/api_validation.py