parameters: (path)
docstring: Load the resource at given path, where path is relative to tensorflow/.
  
    Args:
      path: a string resource path relative to tensorflow/.
  
    Returns:
      The contents of that resource.
  
    Raises:
      IOError: If the path is not found, or the resource can't be opened.
docstring_summary: Load the resource at given path, where path is relative to tensorflow/.
docstring_tokens: Load the resource at given path where path is relative to tensorflow / .
function: def load_resource(path):
    """Load the resource at given path, where path is relative to tensorflow/.
  
    Args:
      path: a string resource path relative to tensorflow/.
  
    Returns:
      The contents of that resource.
  
    Raises:
      IOError: If the path is not found, or the resource can't be opened.
    """
    tensorflow_root = (
        os.path.join(
            os.path.dirname(__file__), os.pardir, os.pardir))
    path = os.path.join(tensorflow_root, path)
    path = os.path.abspath(path)
    try:
      with open(path, 'rb') as f:
        return f.read()
    except IOError as e:
      logging.warning('IOError %s on path %s', e, path)
      raise e
function_tokens: def load_resource ( path ) : tensorflow_root = ( os . path . join ( os . path . dirname ( __file__ ) , os . pardir , os . pardir ) ) path = os . path . join ( tensorflow_root , path ) path = os . path . abspath ( path ) try : with open ( path , 'rb' ) as f : return f . read ( ) except IOError as e : logging . warning ( 'IOError %s on path %s' , e , path ) raise e