code: def test_with_max_level(self, max_level, expected):
      # GH23843: Enhanced JSON normalize
      max_level_test_input_data = [
          {
              "CreatedBy": {"Name": "User001"},
              "Lookup": {
                  "TextField": "Some text",
                  "UserField": {"Id": "ID001", "Name": "Name001"},
              },
              "Image": {"a": "b"},
          }
      ]
      output = nested_to_record(
          max_level_test_input_data, max_level=max_level
      )
      assert output == expected
  
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 12 for calling the TestNestedToRecord obj's underlying member method code with example usage: obj.test_with_max_level(max_level, expected) without return types