code: def sample_to_lz4(sample):
      import lz4.block
  
      deflated_buf = lz4.block.compress(sample, store_size=False)
      return np.frombuffer(deflated_buf, dtype=np.uint8)
  
file_path: DALI/dali/test/python/operator_1/test_inflate.py
imports: import numpy
  from nvidia.dali import pipeline_def, fn, types
  from test_utils import np_type_to_dali, has_operator, restrict_platform
  from nose_utils import assert_raises
  from nose2.tools import params
label_desc: Use image node_id 1 for calling a global function with example usage: sample_to_lz4(sample) and returns: np