code: def test_assign_type_error(self):
      values = ["string", None]
      for value in values:
          with self.assertRaises(Exception):
              Float(MagicMock(), MagicMock()).assign(value)
  
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 2 for calling the TestFloat obj's underlying member method code with example usage: obj.test_assign_type_error() without return types