code: def _get_invoke_config(self, function):
          
  
          env_vars = self._make_env_vars(function)
          code_abs_path = resolve_code_path(self.cwd, function.codeuri)
  
          LOG.debug("Resolved absolute path to code is %s", code_abs_path)
  
          function_timeout = function.timeout
  
          # The Runtime container handles timeout inside the container. When debugging with short timeouts, this can
          # cause the container execution to stop. When in debug mode, we set the timeout in the container to a max 10
          # hours. This will ensure the container doesn't unexpectedly stop while debugging function code
          if self.is_debugging():
              function_timeout = self.MAX_DEBUG_TIMEOUT
  
          return FunctionConfig(name=function.name,
                                runtime=function.runtime,
                                handler=function.handler,
                                code_abs_path=code_abs_path,
                                layers=function.layers,
                                memory=function.memory,
                                timeout=function_timeout,
                                env_vars=env_vars)
docs: Returns invoke configuration to pass to Lambda Runtime to invoke the given function
  
          :param samcli.commands.local.lib.provider.Function function: Lambda function to generate the configuration for
          :return samcli.local.lambdafn.config.FunctionConfig: Function configuration to pass to Lambda runtime