code: def readable_data(data, encoding):
      """Coerce the data to an object with a ``read`` method."""
      if hasattr(data, "read"):
          return data
  
      return CustomBytesIO(data, encoding)
  
imports: import contextlib
  import io
  import os
  from uuid import uuid4
  import requests
  from .._compat import fields
label_desc: Use image node_id 3 for calling a global function with example usage: readable_data(data, encoding) and returns: CustomBytesIO, data