code: def test_data_serializer_file_like(data_serializer):
      input_image_file_path = os.path.join(DATA_DIR, "", "cuteCat.jpg")
      validation_image_file_path = os.path.join(
          DATA_DIR, "", "cuteCat.raw"
      )
      input_image_data = data_serializer.serialize(
          input_image_file_path
      )
      validation_image_data = open(
          validation_image_file_path, "rb"
      ).read()
      assert input_image_data == validation_image_data
  
imports: from __future__ import absolute_import
  import io
  import json
  import os
  import numpy
  import pytest
  import scipy.sparse
  from sagemaker.serializers import CSVSerializer, NumpySerializer, JSONSerializer, IdentitySerializer, SparseMatrixSerializer, JSONLinesSerializer, LibSVMSerializer, DataSerializer
  from tests.unit import DATA_DIR
label_desc: Use image node_id 45 for calling a global function with example usage: test_data_serializer_file_like(data_serializer) without return types