code: def test_json_normalize_errors(self, missing_metadata):
      # GH14583:
      # If meta keys are not always present a new option to set
      # errors='ignore' has been implemented
  
      msg = (
          "Key 'name' not found. To replace missing values of "
          "'name' with np.nan, pass in errors='ignore'"
      )
      with pytest.raises(KeyError, match=msg):
          json_normalize(
              data=missing_metadata,
              record_path="addresses",
              meta="name",
              errors="raise",
          )
  
imports: import json
  import numpy
  import pytest
  from pandas import DataFrame, Index, Series, json_normalize
  import pandas._testing
  from pandas.io.json._normalize import nested_to_record
label_desc: Use image node_id 4 for calling the TestNestedToRecord obj's underlying member method code with example usage: obj.test_json_normalize_errors(missing_metadata) without return types