code: def test_interval_dtype(left, right):
      result = find_common_type([left, right])
  
      if left is right:
          assert result is left
  
      elif left.subtype.kind in ["i", "u", "f"]:
          # i.e. numeric
          if right.subtype.kind in ["i", "u", "f"]:
              # both numeric -> common numeric subtype
              expected = IntervalDtype(np.float64, "right")
              assert result == expected
          else:
              assert result == object
  
      else:
          assert result == object
  
file_path: pandas/pandas/tests/dtypes/cast/test_find_common_type.py
imports: import numpy
  import pytest
  from pandas.core.dtypes.cast import find_common_type
  from pandas.core.dtypes.common import pandas_dtype
  from pandas.core.dtypes.dtypes import CategoricalDtype, DatetimeTZDtype, IntervalDtype, PeriodDtype
  from pandas import Categorical, Index
label_desc: Use image node_id 8 for calling a global function with example usage: test_interval_dtype(left, right) without return types