code: def resolve_item(obj, attr: str, sep: str = ".") -> List:
      for name in attr.split(sep):
          if not obj.HasField(name):
              return []
          obj = getattr(obj, name)
      return [obj]
  
file_path: wandb/tests/pytest_tests/unit_tests/conftest.py
imports: from queue import Queue
  from typing import Callable, Dict, Generator, List
  import pytest
label_desc: Use image node_id 4 for calling the RecordsUtil obj's underlying member method code with example usage: obj.resolve_item(obj, attr, sep) and returns: list, list