parameters: (name=None)
return_statement: return list(backends.values())[-1]
docstring: Returns a local backend.
  
    Args:
      name: the backend name. If `None`, a default local backend is returned,
        typically `gpu` if one is present, or `cpu` if not. If a string, the named
        backend is returned or an exception raised.
  
    Returns:
      A LocalBackend object.
docstring_summary: Returns a local backend.
docstring_tokens: Returns a local backend .
function: def get_local_backend(name=None):
    """Returns a local backend.
  
    Args:
      name: the backend name. If `None`, a default local backend is returned,
        typically `gpu` if one is present, or `cpu` if not. If a string, the named
        backend is returned or an exception raised.
  
    Returns:
      A LocalBackend object.
    """
    backends = _get_local_backends()
    if name is not None:
      try:
        return backends[name]
      except KeyError:
        raise RuntimeError('Unknown backend {}'.format(name))
  
    return list(backends.values())[-1]
function_tokens: def get_local_backend ( name = None ) : backends = _get_local_backends ( ) if name is not None : try : return backends [ name ] except KeyError : raise RuntimeError ( 'Unknown backend {}' . format ( name ) ) return list ( backends . values ( ) ) [ - 1 ]