docstr: Set image file encoding ratio, to provide accurate size in bytes metadata.
docstr_tok: ["Set","image","file","encoding","ratio",",","to","provide","accurate","size","in","bytes","metadata","."]
code: def _set_encoding_ratio(self, encoding_ratio: int):
      """Set image file encoding ratio, to provide accurate size in bytes metadata."""
      self._encoding_ratio = encoding_ratio
  
imports: import io
  import logging
  import time
  from typing import TYPE_CHECKING, Iterator, List, Optional, Tuple, Union
  import numpy
  from ray.data._internal.delegating_block_builder import DelegatingBlockBuilder
  from ray.data._internal.util import _check_import
  from ray.data.block import Block, BlockMetadata
  from ray.data.datasource.file_based_datasource import FileBasedDatasource
  from ray.data.datasource.file_meta_provider import DefaultFileMetadataProvider
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 1 for calling the _ImageFileMetadataProvider obj's underlying member method code with example usage: obj._set_encoding_ratio(encoding_ratio) without return types