code: def _make_proxy_method(attr):
      def method(self, *args, **kwargs):
          return getattr(self._file, attr)(*args, **kwargs)
  
      return method
  
file_path: mars/mars/lib/aio/base.py
imports: import asyncio
  import functools
  from concurrent.futures import Executor
  from typing import Any, Type
label_desc: Use image node_id 2 for calling a global function with example usage: _make_proxy_method(attr) and returns: method, getattr