def try_import_tfdl():
    """Try to import tensorflow dlpack at runtime.

    Returns
    -------
    tensorflow dlpack module if found. Raise ImportError otherwise
    """
    try:
        return __import__('tensorflow.experimental.dlpack', fromlist=[''])
    except ImportError as e:
        raise ImportError('tensorflow >= 2.2.0 is required.')
