parameters: (model, mode)
return_statement: return distribution_function
docstring: Makes or reuses function to run one step of distributed model execution.
docstring_summary: Makes or reuses function to run one step of distributed model execution.
docstring_tokens: Makes or reuses function to run one step of distributed model execution .
function: def _make_execution_function(model, mode):
    """Makes or reuses function to run one step of distributed model execution."""
    if is_distributing_by_cloning(model):
      return _make_execution_function_with_cloning(model, mode)
  
    distributed_function = get_distributed_function(model, mode)
    if distributed_function:
      return distributed_function
  
    distribution_function = _make_execution_function_without_cloning(model, mode)
    set_distributed_function(model, mode, distribution_function)
    return distribution_function
function_tokens: def _make_execution_function ( model , mode ) : if is_distributing_by_cloning ( model ) : return _make_execution_function_with_cloning ( model , mode ) distributed_function = get_distributed_function ( model , mode ) if distributed_function : return distributed_function distribution_function = _make_execution_function_without_cloning ( model , mode ) set_distributed_function ( model , mode , distribution_function ) return distribution_function