code: def _register_custom_datasets_serializers(serialization_context):
      try:
          import pyarrow as pa  # noqa: F401
      except ModuleNotFoundError:
          # No pyarrow installed so not using Arrow, so no need for custom serializers.
          return
  
      # Register all custom serializers required by Datasets.
      _register_arrow_data_serializer(serialization_context)
      _register_arrow_json_readoptions_serializer(serialization_context)
      _register_arrow_json_parseoptions_serializer(
          serialization_context
      )
  
imports: from dataclasses import dataclass
  import logging
  import os
  import sys
  from typing import List, Tuple, Optional, TYPE_CHECKING
label_desc: Use image node_id 2 for calling a global function with example usage: _register_custom_datasets_serializers(serialization_context) without return types