code: def get_legacy_chunk_size():
      """Get the legacy chunk size.
  
      This function should only be used while waiting for code to be migrated to use satpy.utils.get_chunk_size_limit
      instead.
      """
      chunk_size = _get_pytroll_chunk_size()
  
      if chunk_size is not None:
          return chunk_size
  
      import math
  
      return int(math.sqrt(get_dask_chunk_size_in_bytes() / 8))
  
imports: from __future__ import annotations
  import contextlib
  import datetime
  import logging
  import os
  import pathlib
  import warnings
  from contextlib import contextmanager
  from copy import deepcopy
  from typing import Literal, Mapping, Optional
  from urllib.parse import urlparse
  import dask.utils
  import numpy
  import xarray
  import yaml
  from yaml import BaseLoader, UnsafeLoader
  from satpy._compat import DTypeLike
label_desc: Use image node_id 35 for calling a global function with example usage: get_legacy_chunk_size() and returns: int, chunk_size