code: def test_convertion_to_hem():
      df = pd.DataFrame(
          {
              "email": [
                  "test@google.com",
                  "",
                  "@",
                  None,
                  0.0,
                  "asdf@oiouo@asdf",
              ]
          }
      )
  
      search_keys = {"email": SearchKey.EMAIL}
      converter = EmailSearchKeyConverter("email", None, search_keys)
      df = converter.convert(df)
  
      assert search_keys == {
          EmailSearchKeyConverter.HEM_COLUMN_NAME: SearchKey.HEM,
          EmailSearchKeyConverter.EMAIL_ONE_DOMAIN_COLUMN_NAME: SearchKey.EMAIL_ONE_DOMAIN,
      }
  
      expected_df = pd.DataFrame(
          {
              "email": [
                  "test@google.com",
                  "",
                  "@",
                  None,
                  0.0,
                  "asdf@oiouo@asdf",
              ],
              EmailSearchKeyConverter.HEM_COLUMN_NAME: [
                  "8b0080a904da73e6e500ada3d09a88037289b5c08e03d3a09546ffacc5b5fd57",
                  None,
                  None,
                  None,
                  None,
                  None,
              ],
              EmailSearchKeyConverter.EMAIL_ONE_DOMAIN_COLUMN_NAME: [
                  "tgoogle.com",
                  None,
                  None,
                  None,
                  None,
                  None,
              ],
              EmailSearchKeyConverter.DOMAIN_COLUMN_NAME: [
                  "google.com",
                  None,
                  None,
                  None,
                  None,
                  None,
              ],
          }
      )
  
      assert_frame_equal(expected_df, df)
  
      assert (
          df[EmailSearchKeyConverter.DOMAIN_COLUMN_NAME]
          .astype("string")
          .isnull()
          .sum()
          == 5
      )
  
file_path: upgini/tests/test_email_utils.py
imports: import pandas
  from pandas.testing import assert_frame_equal
  from upgini.metadata import SearchKey
  from upgini.utils.email_utils import EmailSearchKeyConverter, EmailSearchKeyDetector
label_desc: Use image node_id 3 for calling a global function with example usage: test_convertion_to_hem() without return types