code: def testFloatInfNanEncodingWarning(self, *unused_mocks):
      instance = standard_artifacts.Float()
      instance.encode(float("inf"))
      # Non-portable encoding warning
      absl.logging.warning.assert_called_once()
  
imports: import math
  from typing import Any, Dict
  from unittest import mock
  import absl
  import tensorflow
  from tfx.types import standard_artifacts
  from tfx.utils import json_utils
label_desc: Use image node_id 11 for calling the StandardArtifactsTest obj's underlying member method code with example usage: obj.testFloatInfNanEncodingWarning() without return types