code: def test_longdouble_from_int(int_val):
      # for issue gh-9968
      str_val = str(int_val)
      # we'll expect a RuntimeWarning on platforms
      # with np.longdouble equivalent to np.double
      # for large integer input
      with warnings.catch_warnings(record=True) as w:
          warnings.filterwarnings("always", "", RuntimeWarning)
          # can be inf==inf on some platforms
          assert np.longdouble(int_val) == np.longdouble(str_val)
          # we can't directly compare the int and
          # max longdouble value on all platforms
          if (
              np.allclose(
                  np.finfo(np.longdouble).max, np.finfo(np.double).max
              )
              and w
          ):
              assert w[0].category is RuntimeWarning
  
imports: import warnings
  import platform
  import pytest
  import numpy
  from numpy.testing import assert_, assert_equal, assert_raises, assert_warns, assert_array_equal, temppath, IS_MUSL
  from numpy._core.tests._locales import CommaDecimalPointLocale
label_desc: Use image node_id 15 for calling a global function with example usage: test_longdouble_from_int(int_val) without return types