code: def test_populate_obj_str_attrs():
      pop = 1000
      o = types.SimpleNamespace(**{str(i): i for i in range(pop)})
      new_o = m.populate_obj_str_attrs(o, pop)
      new_attrs = {
          k: v
          for k, v in new_o.__dict__.items()
          if not k.startswith("_")
      }
      assert all(isinstance(v, str) for v in new_attrs.values())
      assert len(new_attrs) == pop
  
imports: import contextlib
  import sys
  import types
  import pytest
  import env
  from pybind11_tests import detailed_error_messages_enabled
  from pybind11_tests import pytypes
label_desc: Use image node_id 50 for calling a global function with example usage: test_populate_obj_str_attrs() without return types