code: def check_scale_continuity(scale, dtype, aes_key):
      if not scale.valid_dtype(dtype):
          raise ValueError(
              f"Invalid scale for aesthetic {aes_key} of type {dtype}"
          )
  
file_path: hail/hail/python/hail/ggplot/utils.py
imports: import plotly
  import hail
label_desc: Use image node_id 2 for calling a global function with example usage: check_scale_continuity(scale, dtype, aes_key) without return types