code: def test_ignore_nan_md5_sha():
      obj = {
          "product": "Coffee",
          "company": "Gobias Industries",
          "price": math.nan,
      }
  
      serialized_obj = '{"company": "Gobias Industries", "price": NaN, "product": "Coffee"}'
  
      assert md5_sha_from_str(serialized_obj) == md5_sha_from_dict(obj)
      assert (
          md5_sha_from_str(serialized_obj)
          == "5d129d1dffebc0bacc734366476d586d"
      )
  
      serialized_obj = '{"company": "Gobias Industries", "price": null, "product": "Coffee"}'
  
      assert md5_sha_from_str(serialized_obj) == md5_sha_from_dict(
          obj, ignore_nan=True
      )
      assert (
          md5_sha_from_str(serialized_obj)
          == "40e87d61f6add03816bccdeac5713b9f"
      )
  
file_path: superset/tests/integration_tests/utils/hashing_tests.py
imports: import datetime
  import math
  from typing import Any
  import pytest
  from superset.utils.hashing import md5_sha_from_dict, md5_sha_from_str
label_desc: Use image node_id 4 for calling a global function with example usage: test_ignore_nan_md5_sha() without return types