code: def test_float_warnings(self):
      run = init_run(mode="debug")
      with pytest.warns(NeptuneUnsupportedValue):
          run["infinity"] = float("inf")
          run["neg-infinity"] = float("-inf")
          run["nan"] = float("nan")
  
      with pytest.raises(MetadataInconsistency):
          run["infinity"].fetch()
  
      with pytest.raises(MetadataInconsistency):
          run["neg-infinity"].fetch()
  
      with pytest.raises(MetadataInconsistency):
          run["nan"].fetch()
  
      run.stop()
  
file_path: neptune-client/tests/unit/neptune/new/attributes/atoms/test_float.py
imports: import pytest
  from mock import MagicMock, patch
  from neptune import init_run
  from neptune.attributes.atoms.float import Float, FloatVal
  from neptune.common.warnings import NeptuneUnsupportedValue
  from neptune.exceptions import MetadataInconsistency
  from neptune.internal.operation import AssignFloat
  from tests.unit.neptune.new.attributes.test_attribute_base import TestAttributeBase
label_desc: Use image node_id 4 for calling the TestFloat obj's underlying member method code with example usage: obj.test_float_warnings() without return types