code: def __getattr__(self, item):
      self.call_counter[item] += 1
      result = self.returns.get(item)
      if callable(result):
          return result
      else:
          return lambda *a, **kw: result
  
file_path: ray/release/ray_release/tests/utils.py
imports: from collections import Counter
  from typing import Any
label_desc: Use image node_id 3 for calling the MockSDK obj's underlying member method code with example usage: obj.__getattr__(item) and returns: result, function