code: def _expand_range_distinct(
      x: TupleFloat2,
      expand: TupleFloat2 | TupleFloat4,
  ) -> TupleFloat2:
      # Expand ascending and descending order range
      a, b = x
      if a > b:
          b, a = expand_range_distinct((b, a), expand)
      else:
          a, b = expand_range_distinct((a, b), expand)
      return (a, b)
  
imports: from __future__ import annotations
  import typing
  import numpy
  from mizani.bounds import expand_range_distinct
  from .._utils import ignore_warnings
  from ..iapi import range_view
label_desc: Use image node_id 1 for calling a global function with example usage: _expand_range_distinct(x, expand) and returns: a,  b